Skip to content

Commit

Permalink
Reverse order of arguments in getgroups call (in example) to match pr…
Browse files Browse the repository at this point in the history
…ototype.
  • Loading branch information
Jim Meyering committed Jan 4, 1996
1 parent 7974fe2 commit 85f4084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manual/users.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 85f4084

Please sign in to comment.