Correct CTASSERT condition.

This commit is contained in:
Andrey V. Elsukov 2013-07-09 15:10:27 +00:00
parent e5aeb83c42
commit 9bea6fd6c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253100

View File

@ -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), \