aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@lucent.com>1996-01-04 23:21:47 +0000
committerJim Meyering <meyering@lucent.com>1996-01-04 23:21:47 +0000
commit85f40840015f648c8fdb6dfe7ea462be3884e10c (patch)
tree6f566754accf5cf046e2127913aa85b362f5d56d /manual/users.texi
parentThu Jan 4 11:35:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu> (diff)
downloadglibc-85f40840015f648c8fdb6dfe7ea462be3884e10c.tar.gz
glibc-85f40840015f648c8fdb6dfe7ea462be3884e10c.tar.bz2
glibc-85f40840015f648c8fdb6dfe7ea462be3884e10c.zip
Reverse order of arguments in getgroups call (in example) to match prototype.cvs/libc-960106cvs/libc-960105
Diffstat (limited to 'manual/users.texi')
-rw-r--r--manual/users.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/users.texi b/manual/users.texi
index c35e8b6a5b..9b5e1ce9b5 100644
--- a/manual/users.texi
+++ b/manual/users.texi
@@ -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);