From: Vladislav Grishenko Date: Sun, 31 Jan 2016 16:03:55 +0000 (+0500) Subject: Sync style with the existing _packed & _unused macros X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a3af454310e5cd8cded240aac4a1e2a7fd04569;p=oweals%2Fodhcp6c.git Sync style with the existing _packed & _unused macros --- diff --git a/src/odhcp6c.h b/src/odhcp6c.h index 08a816f..5ebea29 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -18,7 +18,7 @@ #define _unused __attribute__((unused)) #define _packed __attribute__((packed)) -#define __aligned(n) __attribute__((aligned(n))) +#define _aligned(n) __attribute__((aligned(n))) #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) diff --git a/src/ra.c b/src/ra.c index f1b102d..89dc58b 100644 --- a/src/ra.c +++ b/src/ra.c @@ -274,7 +274,7 @@ bool ra_process(void) { bool found = false; bool changed = false; - uint8_t buf[1500] __aligned(4); + uint8_t buf[1500] _aligned(4); union { struct cmsghdr hdr; uint8_t buf[CMSG_SPACE(sizeof(int))];