From owner-svn-src-projects@FreeBSD.ORG Wed Jun 17 23:34:59 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 124A3106566B; Wed, 17 Jun 2009 23:34:59 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DA5828FC15; Wed, 17 Jun 2009 23:34:58 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5HNYwPc091615; Wed, 17 Jun 2009 23:34:58 GMT (envelope-from brooks@svn.freebsd.org) Received: (from brooks@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5HNYwU0091612; Wed, 17 Jun 2009 23:34:58 GMT (envelope-from brooks@svn.freebsd.org) Message-Id: <200906172334.n5HNYwU0091612@svn.freebsd.org> From: Brooks Davis Date: Wed, 17 Jun 2009 23:34:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194410 - in projects/ngroups/sys: kern sys X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 23:34:59 -0000 Author: brooks Date: Wed Jun 17 23:34:58 2009 New Revision: 194410 URL: http://svn.freebsd.org/changeset/base/194410 Log: crextend() is now only used in kern_prot.c so make it static. Remove the inline from crsetgroups_locked() since the compiler should do that automagically. Modified: projects/ngroups/sys/kern/kern_prot.c projects/ngroups/sys/sys/ucred.h Modified: projects/ngroups/sys/kern/kern_prot.c ============================================================================== --- projects/ngroups/sys/kern/kern_prot.c Wed Jun 17 23:11:54 2009 (r194409) +++ projects/ngroups/sys/kern/kern_prot.c Wed Jun 17 23:34:58 2009 (r194410) @@ -82,7 +82,8 @@ static MALLOC_DEFINE(M_CRED, "cred", "cr SYSCTL_NODE(_security, OID_AUTO, bsd, CTLFLAG_RW, 0, "BSD security policy"); -static __inline void crsetgroups_locked(struct ucred *cr, int ngrp, +static void crextend(struct ucred *cr, int n); +static void crsetgroups_locked(struct ucred *cr, int ngrp, gid_t *groups); #ifndef _SYS_SYSPROTO_H_ @@ -1946,7 +1947,7 @@ crcopysafe(struct proc *p, struct ucred /* * Extend the passed in credential to hold n items. */ -void +static void crextend(struct ucred *cr, int n) { int cnt; @@ -1988,7 +1989,7 @@ crextend(struct ucred *cr, int n) * (i.e. sorting in the future). crextend() must have been called * before hand to ensure sufficient space is available. If */ -static inline void +static void crsetgroups_locked(struct ucred *cr, int ngrp, gid_t *groups) { Modified: projects/ngroups/sys/sys/ucred.h ============================================================================== --- projects/ngroups/sys/sys/ucred.h Wed Jun 17 23:11:54 2009 (r194409) +++ projects/ngroups/sys/sys/ucred.h Wed Jun 17 23:34:58 2009 (r194410) @@ -103,7 +103,6 @@ struct ucred *crget(void); struct ucred *crhold(struct ucred *cr); int crshared(struct ucred *cr); void cru2x(struct ucred *cr, struct xucred *xcr); -void crextend(struct ucred *cr, int n); void crsetgroups(struct ucred *cr, int n, gid_t *groups); int groupmember(gid_t gid, struct ucred *cred); #endif /* _KERNEL */