svn commit: r253100 - head/sys/net
Andrey V. Elsukov
ae at FreeBSD.org
Tue Jul 9 15:10:27 UTC 2013
Author: ae
Date: Tue Jul 9 15:10:27 2013
New Revision: 253100
URL: http://svnweb.freebsd.org/changeset/base/253100
Log:
Correct CTASSERT condition.
Modified:
head/sys/net/vnet.h
Modified: head/sys/net/vnet.h
==============================================================================
--- head/sys/net/vnet.h Tue Jul 9 14:38:26 2013 (r253099)
+++ head/sys/net/vnet.h Tue Jul 9 15:10:27 2013 (r253100)
@@ -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), \
More information about the svn-src-head
mailing list