aboutsummaryrefslogtreecommitdiff
path: root/sys/net/vnet.h
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2013-07-09 15:10:27 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2013-07-09 15:10:27 +0000
commit9bea6fd6c6d3caddc6a83075a0897015c35a6fae (patch)
tree9477f77c2dc4bb6a314e5801e8165196a66402a4 /sys/net/vnet.h
parente5aeb83c4287f125fb534065ad3ac19f9b261511 (diff)
downloadsrc-9bea6fd6c6d3caddc6a83075a0897015c35a6fae.tar.gz
src-9bea6fd6c6d3caddc6a83075a0897015c35a6fae.zip
Correct CTASSERT condition.
Notes
Notes: svn path=/head/; revision=253100
Diffstat (limited to 'sys/net/vnet.h')
-rw-r--r--sys/net/vnet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/vnet.h b/sys/net/vnet.h
index 7836f6bc9133..4e9de11efa1c 100644
--- a/sys/net/vnet.h
+++ b/sys/net/vnet.h
@@ -124,7 +124,8 @@ static int \
array##_sysctl(SYSCTL_HANDLER_ARGS) \
{ \
type s; \
- CTASSERT(sizeof(type) == sizeof(VNET(array))); \
+ CTASSERT((sizeof(type) / sizeof(uint64_t)) == \
+ (sizeof(VNET(array)) / sizeof(counter_u64_t))); \
COUNTER_ARRAY_COPY(VNET(array), &s, sizeof(type) / sizeof(uint64_t));\
if (req->newptr) \
COUNTER_ARRAY_ZERO(VNET(array), \