svn commit: r194410 - in projects/ngroups/sys: kern sys
Brooks Davis
brooks at FreeBSD.org
Wed Jun 17 23:34:59 UTC 2009
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 */
More information about the svn-src-projects
mailing list