mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Correct CTASSERT condition.
This commit is contained in:
parent
e5aeb83c42
commit
9bea6fd6c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253100
@ -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), \
|
||||
|
Loading…
Reference in New Issue
Block a user