From: Jim Meyering Date: Thu, 4 Jan 1996 23:21:47 +0000 (+0000) Subject: Reverse order of arguments in getgroups call (in example) to match prototype. X-Git-Tag: cvs/libc-960105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f40840015f648c8fdb6dfe7ea462be3884e10c;p=thirdparty%2Fglibc.git Reverse order of arguments in getgroups call (in example) to match prototype. --- diff --git a/manual/users.texi b/manual/users.texi index c35e8b6a5bd..9b5e1ce9b5f 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);