diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2017-05-08 15:47:50 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2017-05-08 15:47:50 +0000 |
commit | 6ec844459387badccab6421a0196b138a3d872e9 (patch) | |
tree | a2c192f7cab9c076779f96ffad74e13f2242ade2 /sys/kern | |
parent | 34c8eb991d9c5fbec8cfef100ac342027dd8fbf8 (diff) |
add a compile time assertion MSIZE == sizeof(struct mbuf)
ok kettenis mpi tom
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 2dd51c51c81..9795f36918e 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.245 2017/02/07 07:00:21 dlg Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.246 2017/05/08 15:47:49 tedu Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -161,6 +161,8 @@ mbinit(void) int i; unsigned int lowbits; + CTASSERT(MSIZE == sizeof(struct mbuf)); + m_pool_allocator.pa_pagesz = pool_allocator_multi.pa_pagesz; nmbclust_update(); |