Reverse order of arguments in getgroups call (in example) to match prototype.

This commit is contained in:
Jim Meyering 1996-01-04 23:21:47 +00:00
parent 7974fe2117
commit 85f4084001

View file

@ -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);