summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getgrouplist.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-01-22 17:32:53 +0000
committermarkm <markm@FreeBSD.org>2002-01-22 17:32:53 +0000
commite2a2029185c199c7c68e39df67aa68b32137facc (patch)
tree4fa4107bd9dc143cbf75e44ad9d40c4184b8784e /lib/libc/gen/getgrouplist.c
parent83a72ec01c6326a9a3a9f6e66192863bcbd4b8e4 (diff)
downloadFreeBSD-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/getgrouplist.c')
-rw-r--r--lib/libc/gen/getgrouplist.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/gen/getgrouplist.c b/lib/libc/gen/getgrouplist.c
index 31f90b4..0de6c55 100644
--- a/lib/libc/gen/getgrouplist.c
+++ b/lib/libc/gen/getgrouplist.c
@@ -31,9 +31,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getgrouplist.c 8.2 (Berkeley) 12/8/94";
-#endif /* LIBC_SCCS and not lint */
+#endif
/*
* get credential
@@ -45,12 +48,12 @@ static char sccsid[] = "@(#)getgrouplist.c 8.2 (Berkeley) 12/8/94";
int
getgrouplist(uname, agroup, groups, grpcnt)
const char *uname;
- int agroup;
- register int *groups;
+ gid_t agroup;
+ gid_t *groups;
int *grpcnt;
{
- register struct group *grp;
- register int i, ngroups;
+ struct group *grp;
+ int i, ngroups;
int ret, maxgroups;
ret = 0;
OpenPOWER on IntegriCloud