mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Reverse order of arguments in getgroups call (in example) to match prototype.
This commit is contained in:
parent
7974fe2117
commit
85f4084001
@ -246,7 +246,7 @@ IDs:
|
||||
gid_t *
|
||||
read_all_groups (void)
|
||||
@{
|
||||
int ngroups = getgroups (NULL, 0);
|
||||
int ngroups = getgroups (0, NULL);
|
||||
gid_t *groups
|
||||
= (gid_t *) xmalloc (ngroups * sizeof (gid_t));
|
||||
int val = getgroups (ngroups, groups);
|
||||
|
Loading…
Reference in New Issue
Block a user