From owner-svn-src-all@FreeBSD.ORG Fri Sep 3 17:42:18 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06C6A10656E2; Fri, 3 Sep 2010 17:42:18 +0000 (UTC) (envelope-from mdf@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DA8558FC13; Fri, 3 Sep 2010 17:42:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o83HgHY4057160; Fri, 3 Sep 2010 17:42:17 GMT (envelope-from mdf@svn.freebsd.org) Received: (from mdf@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o83HgH8W057158; Fri, 3 Sep 2010 17:42:17 GMT (envelope-from mdf@svn.freebsd.org) Message-Id: <201009031742.o83HgH8W057158@svn.freebsd.org> From: Matthew D Fleming Date: Fri, 3 Sep 2010 17:42:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212184 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 17:42:18 -0000 Author: mdf Date: Fri Sep 3 17:42:17 2010 New Revision: 212184 URL: http://svn.freebsd.org/changeset/base/212184 Log: Use a better #if guard. Suggested by pluknet . Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c ============================================================================== --- head/sys/kern/subr_sbuf.c Fri Sep 3 17:42:12 2010 (r212183) +++ head/sys/kern/subr_sbuf.c Fri Sep 3 17:42:17 2010 (r212184) @@ -115,7 +115,7 @@ _assert_sbuf_state(const char *fun, stru #endif /* _KERNEL && INVARIANTS */ -#ifdef _KERNEL +#ifdef CTASSERT CTASSERT(powerof2(SBUF_MAXEXTENDSIZE)); CTASSERT(powerof2(SBUF_MAXEXTENDINCR)); #endif