aboutsummaryrefslogtreecommitdiff
path: root/manual/users.texi
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
parent7974fe2117b1308a46f16ae5803c64f75303521c (diff)
downloadglibc-85f40840015f648c8fdb6dfe7ea462be3884e10c.zip
glibc-85f40840015f648c8fdb6dfe7ea462be3884e10c.tar.gz
glibc-85f40840015f648c8fdb6dfe7ea462be3884e10c.tar.bz2
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 c35e8b6..9b5e1ce 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);