diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-09 00:07:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-09 18:02:22 +0100 |
commit | 885fdebc13b13307555e4b837fae604bcc4e72b4 (patch) | |
tree | e9159e91fd69d36a80aa10f927563583a49dbfdf /src/shared | |
parent | db93e063bdffe0a8b95fcc522aeacddf62d1a9f9 (diff) |
tree-wide: use _packed_ macro instead of raw gcc __attribute__
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/efivars.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c index 4f8a81dcdb..c6b45d214b 100644 --- a/src/shared/efivars.c +++ b/src/shared/efivars.c @@ -42,7 +42,7 @@ struct boot_option { uint32_t attr; uint16_t path_len; uint16_t title[]; -} __attribute__((packed)); +} _packed_; struct drive_path { uint32_t part_nr; @@ -51,7 +51,7 @@ struct drive_path { char signature[16]; uint8_t mbr_type; uint8_t signature_type; -} __attribute__((packed)); +} _packed_; struct device_path { uint8_t type; @@ -61,7 +61,7 @@ struct device_path { uint16_t path[0]; struct drive_path drive; }; -} __attribute__((packed)); +} _packed_; bool is_efi_boot(void) { return access("/sys/firmware/efi", F_OK) >= 0; @@ -169,7 +169,7 @@ int efi_set_variable( struct var { uint32_t attr; char buf[]; - } __attribute__((packed)) *buf = NULL; + } _packed_ *buf = NULL; char *p = NULL; int fd = -1; int r; @@ -404,7 +404,7 @@ struct guid { uint16_t u2; uint16_t u3; uint8_t u4[8]; -} __attribute__((packed)); +} _packed_; static void id128_to_efi_guid(sd_id128_t id, void *guid) { struct guid *uuid = guid; |