Date: Fri, 16 Dec 2011 09:56:23 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228564 - head/sys/sys Message-ID: <201112160956.pBG9uNxL097253@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Dec 16 09:56:22 2011 New Revision: 228564 URL: http://svn.freebsd.org/changeset/base/228564 Log: Fix typo in macro. I copied this macro directly from Bruce's email, as I assumed it was awesome already. Reported by: tijl@ Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h ============================================================================== --- head/sys/sys/cdefs.h Fri Dec 16 08:27:04 2011 (r228563) +++ head/sys/sys/cdefs.h Fri Dec 16 09:56:22 2011 (r228564) @@ -361,7 +361,7 @@ #else #ifndef __cplusplus #define __offsetof(type, field) \ - ((__size_t)(__uintptr_t)((const volatile void *)&((type *)0)->member)) + ((__size_t)(__uintptr_t)((const volatile void *)&((type *)0)->field)) #else #define __offsetof(type, field) \ (__offsetof__ (reinterpret_cast <__size_t> \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112160956.pBG9uNxL097253>