chiark / gitweb /
[PATCH] fix offsetof() define in klibc.
authorgreg@kroah.com <greg@kroah.com>
Fri, 13 Feb 2004 07:43:31 +0000 (23:43 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000 (21:32 -0700)
klibc/klibc/include/stddef.h

index 900c147..125d235 100644 (file)
@@ -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 */