summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-12 23:43:31 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:27 -0700
commit89c941084f175904fed110fc254eac0c1897f036 (patch)
treec1f84de9c10b2352b05c8f6ddcdd8fef8e03fbca
parent1659326d724e5f94d94d43243e087c54f8508e2b (diff)
[PATCH] fix offsetof() define in klibc.
-rw-r--r--klibc/klibc/include/stddef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/klibc/klibc/include/stddef.h b/klibc/klibc/include/stddef.h
index 900c147cd8..125d2352ec 100644
--- a/klibc/klibc/include/stddef.h
+++ b/klibc/klibc/include/stddef.h
@@ -19,6 +19,6 @@
#endif
#undef offsetof
-#define offsetof(t,m) ((size_t)&((t *)0->m))
+#define offsetof(t,m) ((size_t)&((t *)0)->m)
#endif /* _STDDEF_H */