From 7a3af454310e5cd8cded240aac4a1e2a7fd04569 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Sun, 31 Jan 2016 21:03:55 +0500 Subject: [PATCH] Sync style with the existing _packed & _unused macros --- src/odhcp6c.h | 2 +- src/ra.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))]; -- 2.30.2