From 85f40840015f648c8fdb6dfe7ea462be3884e10c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 4 Jan 1996 23:21:47 +0000 Subject: Reverse order of arguments in getgroups call (in example) to match prototype. --- manual/users.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3