0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 12:48:43 +00:00

Fixes compiler warning in OFFSETOF().

This commit is contained in:
Ondrej Zajicek 2009-07-23 22:21:17 +02:00
parent 3aab39f589
commit 54d70d3ebb

View File

@ -13,7 +13,7 @@
/* Ugly structure offset handling macros */
#define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i)
#define OFFSETOF(s, i) ((size_t) &((s *)0)->i)
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
#define BIRD_ALIGN(s, a) (((s)+a-1)&~(a-1))