summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-07-09 15:10:27 +0000
committerae <ae@FreeBSD.org>2013-07-09 15:10:27 +0000
commit89cf4181969ecbc9b24b049bb5cf834f0dbe967c (patch)
tree9477f77c2dc4bb6a314e5801e8165196a66402a4 /sys/net
parent5719f9fad9eccf9166228d620a87a56a7a8d2a95 (diff)
downloadFreeBSD-src-89cf4181969ecbc9b24b049bb5cf834f0dbe967c.zip
FreeBSD-src-89cf4181969ecbc9b24b049bb5cf834f0dbe967c.tar.gz
Correct CTASSERT condition.
Diffstat (limited to 'sys/net')
-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 7836f6b..4e9de11 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), \
OpenPOWER on IntegriCloud