From 885fdebc13b13307555e4b837fae604bcc4e72b4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 9 Mar 2015 00:07:44 +0100 Subject: tree-wide: use _packed_ macro instead of raw gcc __attribute__ --- src/shared/efivars.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/shared/efivars.c') 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; -- cgit v1.2.3-54-g00ecf