diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-11-10 15:56:44 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-11-10 15:56:44 +1100 |
commit | e5a2b5288dea7f17373d97f4e81972de6935ae07 (patch) | |
tree | ffa9ebe2ca8828ecef622a50c5c59cd9204a0ea6 /openbsd-compat | |
parent | b0288098c9e9c4753e8e9537051eef4b7f417585 (diff) |
- (dtucker) [openbsd-compat/getgrouplist.c] Sync OpenBSD revs 1.10 - 1.2 (ANSI
prototypes, removal of "register").
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/getgrouplist.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/openbsd-compat/getgrouplist.c b/openbsd-compat/getgrouplist.c index 59c164f44..2a2b8878b 100644 --- a/openbsd-compat/getgrouplist.c +++ b/openbsd-compat/getgrouplist.c | |||
@@ -1,5 +1,6 @@ | |||
1 | /* OPENBSD ORIGINAL: lib/libc/gen/getgrouplist.c */ | 1 | /* OPENBSD ORIGINAL: lib/libc/gen/getgrouplist.c */ |
2 | 2 | ||
3 | /* $OpenBSD: getgrouplist.c,v 1.12 2005/08/08 08:05:34 espie Exp $ */ | ||
3 | /* | 4 | /* |
4 | * Copyright (c) 1991, 1993 | 5 | * Copyright (c) 1991, 1993 |
5 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. |
@@ -33,10 +34,6 @@ | |||
33 | 34 | ||
34 | #ifndef HAVE_GETGROUPLIST | 35 | #ifndef HAVE_GETGROUPLIST |
35 | 36 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | ||
37 | static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.9 2003/06/25 21:16:47 deraadt Exp $"; | ||
38 | #endif /* LIBC_SCCS and not lint */ | ||
39 | |||
40 | /* | 37 | /* |
41 | * get credential | 38 | * get credential |
42 | */ | 39 | */ |
@@ -46,14 +43,10 @@ static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.9 2003/06/25 21:16:47 deraad | |||
46 | #include <grp.h> | 43 | #include <grp.h> |
47 | 44 | ||
48 | int | 45 | int |
49 | getgrouplist(uname, agroup, groups, grpcnt) | 46 | getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt) |
50 | const char *uname; | ||
51 | gid_t agroup; | ||
52 | register gid_t *groups; | ||
53 | int *grpcnt; | ||
54 | { | 47 | { |
55 | register struct group *grp; | 48 | struct group *grp; |
56 | register int i, ngroups; | 49 | int i, ngroups; |
57 | int ret, maxgroups; | 50 | int ret, maxgroups; |
58 | int bail; | 51 | int bail; |
59 | 52 | ||