diff options
author | markm <markm@FreeBSD.org> | 2002-01-22 17:32:53 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-01-22 17:32:53 +0000 |
commit | e2a2029185c199c7c68e39df67aa68b32137facc (patch) | |
tree | 4fa4107bd9dc143cbf75e44ad9d40c4184b8784e /lib/libc/gen/initgroups.c | |
parent | 83a72ec01c6326a9a3a9f6e66192863bcbd4b8e4 (diff) | |
download | FreeBSD-src-e2a2029185c199c7c68e39df67aa68b32137facc.zip FreeBSD-src-e2a2029185c199c7c68e39df67aa68b32137facc.tar.gz |
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal
with uid_t usage and (user)->pw_uid.
PR: 3242
Diffstat (limited to 'lib/libc/gen/initgroups.c')
-rw-r--r-- | lib/libc/gen/initgroups.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/gen/initgroups.c b/lib/libc/gen/initgroups.c index 3fc9bb2..16ffb49 100644 --- a/lib/libc/gen/initgroups.c +++ b/lib/libc/gen/initgroups.c @@ -31,14 +31,12 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #if defined(LIBC_SCCS) && !defined(lint) -#if 0 static char sccsid[] = "@(#)initgroups.c 8.1 (Berkeley) 6/4/93"; -#else -static const char rcsid[] = - "$FreeBSD$"; #endif -#endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -51,7 +49,7 @@ static const char rcsid[] = int initgroups(uname, agroup) const char *uname; - int agroup; + gid_t agroup; { int groups[NGROUPS], ngroups; |