From owner-svn-src-all@FreeBSD.ORG Tue Jun 29 01:04:24 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 CF3C7106564A; Tue, 29 Jun 2010 01:04:24 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BEE928FC15; Tue, 29 Jun 2010 01:04:24 +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 o5T14OGw069967; Tue, 29 Jun 2010 01:04:24 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5T14OH9069965; Tue, 29 Jun 2010 01:04:24 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201006290104.o5T14OH9069965@svn.freebsd.org> From: Doug Barton Date: Tue, 29 Jun 2010 01:04:24 +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: r209582 - 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: Tue, 29 Jun 2010 01:04:24 -0000 Author: dougb Date: Tue Jun 29 01:04:24 2010 New Revision: 209582 URL: http://svn.freebsd.org/changeset/base/209582 Log: If i is going to be used in the loop unconditionally the declaration has to be unconditional as well. Conical head covering to: kib Modified: head/sys/kern/sysv_shm.c Modified: head/sys/kern/sysv_shm.c ============================================================================== --- head/sys/kern/sysv_shm.c Mon Jun 28 18:17:21 2010 (r209581) +++ head/sys/kern/sysv_shm.c Tue Jun 29 01:04:24 2010 (r209582) @@ -907,9 +907,7 @@ shminit() static int shmunload() { -#ifdef MAC int i; -#endif if (shm_nused > 0) return (EBUSY);