From 9bea6fd6c6d3caddc6a83075a0897015c35a6fae Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Tue, 9 Jul 2013 15:10:27 +0000 Subject: [PATCH] Correct CTASSERT condition. --- sys/net/vnet.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/vnet.h b/sys/net/vnet.h index 7836f6bc9133..4e9de11efa1c 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), \