diff options
author | ae <ae@FreeBSD.org> | 2013-07-09 15:10:27 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2013-07-09 15:10:27 +0000 |
commit | 89cf4181969ecbc9b24b049bb5cf834f0dbe967c (patch) | |
tree | 9477f77c2dc4bb6a314e5801e8165196a66402a4 | |
parent | 5719f9fad9eccf9166228d620a87a56a7a8d2a95 (diff) | |
download | FreeBSD-src-89cf4181969ecbc9b24b049bb5cf834f0dbe967c.zip FreeBSD-src-89cf4181969ecbc9b24b049bb5cf834f0dbe967c.tar.gz |
Correct CTASSERT condition.
-rw-r--r-- | sys/net/vnet.h | 3 |
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), \ |