diff options
author | glebius <glebius@FreeBSD.org> | 2015-02-17 20:52:51 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2015-02-17 20:52:51 +0000 |
commit | 5a69729fb85fb7828b4cfe73a2d55d52af3a60f4 (patch) | |
tree | e02ab80764b545226d4d801e1cca50b3d4b2ca70 /sys/kern/uipc_mbuf.c | |
parent | b42715ff599b5c1c22ff6007219090aae17676d8 (diff) | |
download | FreeBSD-src-5a69729fb85fb7828b4cfe73a2d55d52af3a60f4.zip FreeBSD-src-5a69729fb85fb7828b4cfe73a2d55d52af3a60f4.tar.gz |
Use anonymous unions and structs to organize shared space in mbuf(9),
instead of preprocessor macros.
This will make debugger output of 'print *m' exactly match the names
we use in code, making life of a kernel hacker way more pleasant. And
this also allows to rename struct_m_ext back to m_ext.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index bab8f50..a1a7915 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -112,11 +112,11 @@ CTASSERT(offsetof(struct mbuf, m_pktdat) % 8 == 0); #if defined(__LP64__) CTASSERT(offsetof(struct mbuf, m_dat) == 32); CTASSERT(sizeof(struct pkthdr) == 56); -CTASSERT(sizeof(struct struct_m_ext) == 48); +CTASSERT(sizeof(struct m_ext) == 48); #else CTASSERT(offsetof(struct mbuf, m_dat) == 24); CTASSERT(sizeof(struct pkthdr) == 48); -CTASSERT(sizeof(struct struct_m_ext) == 28); +CTASSERT(sizeof(struct m_ext) == 28); #endif /* |