From owner-svn-src-head@FreeBSD.ORG Tue Jul 9 15:10:27 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D9E99C21; Tue, 9 Jul 2013 15:10:27 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id CCCA316AD; Tue, 9 Jul 2013 15:10:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r69FARRd034567; Tue, 9 Jul 2013 15:10:27 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r69FARhW034566; Tue, 9 Jul 2013 15:10:27 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201307091510.r69FARhW034566@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Tue, 9 Jul 2013 15:10:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253100 - head/sys/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 15:10:27 -0000 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), \