summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-07-23 22:21:17 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-07-23 22:21:17 +0200
commit54d70d3ebb20c36f483cde9d7d5b877772d4884e (patch)
treeff62abe2e250f47718e3096ceeaff9b09337a211
parent3aab39f589c352e30e9db92346b579dd561482b3 (diff)
downloadbird-54d70d3ebb20c36f483cde9d7d5b877772d4884e.tar
bird-54d70d3ebb20c36f483cde9d7d5b877772d4884e.zip
Fixes compiler warning in OFFSETOF().
-rw-r--r--lib/birdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index b7cd6b4..12a581b 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -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))