]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve readability of static assertions for OFFSET_* macros.
authorEd Schouten <ed@FreeBSD.org>
Mon, 13 May 2013 21:47:17 +0000 (21:47 +0000)
committerEd Schouten <ed@FreeBSD.org>
Mon, 13 May 2013 21:47:17 +0000 (21:47 +0000)
commit31ffd8039d49042e20b7a869ce0780d336e5a9d8
treeaa79f759af2a895083888b10b863a56fa26f13aa
parent84242b32db561706a761b56bdb367a41a019029f
Improve readability of static assertions for OFFSET_* macros.

Instead of doing all sorts of weird casting of constants to
pointer-pointers, simply use the standard C offsetof() macro to obtain
the offset of the respective fields in the structures.
sys/amd64/amd64/vm_machdep.c
sys/i386/i386/vm_machdep.c