summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2016-01-31 21:03:55 +0500
committerVladislav Grishenko <themiron@mail.ru>2016-01-31 21:03:55 +0500
commit7a3af454310e5cd8cded240aac4a1e2a7fd04569 (patch)
tree71a6f9de328b89856ba0b58a8cfcca210c871798
parent57622fffb7e74065f4a7b32d37acd44299fe9759 (diff)
downloadodhcp6c-7a3af454310e5cd8cded240aac4a1e2a7fd04569.tar.gz
Sync style with the existing _packed & _unused macros
-rw-r--r--src/odhcp6c.h2
-rw-r--r--src/ra.c2
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))];