summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getgrouplist.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2004-05-18 02:05:52 +0000
committerjfb <jfb@openbsd.org>2004-05-18 02:05:52 +0000
commit73b3e3c43784cb5fd04439d34c7436bbf85871db (patch)
tree71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/getgrouplist.c
parentsync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff)
downloadwireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.tar.xz
wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.zip
ansify function definitions and zap some `register'
ok millert@
Diffstat (limited to 'lib/libc/gen/getgrouplist.c')
-rw-r--r--lib/libc/gen/getgrouplist.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/gen/getgrouplist.c b/lib/libc/gen/getgrouplist.c
index 70119e05a3a..27214a2664e 100644
--- a/lib/libc/gen/getgrouplist.c
+++ b/lib/libc/gen/getgrouplist.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.9 2003/06/25 21:16:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.10 2004/05/18 02:05:52 jfb Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -40,11 +40,7 @@ static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.9 2003/06/25 21:16:47 deraad
#include <grp.h>
int
-getgrouplist(uname, agroup, groups, grpcnt)
- const char *uname;
- gid_t agroup;
- register gid_t *groups;
- int *grpcnt;
+getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
{
register struct group *grp;
register int i, ngroups;