Reverse order of arguments in getgroups call (in example) to match prototype. libc-960106
authormeyering <meyering>
Thu, 4 Jan 1996 23:21:47 +0000 (23:21 +0000)
committermeyering <meyering>
Thu, 4 Jan 1996 23:21:47 +0000 (23:21 +0000)
manual/users.texi

index c35e8b6..9b5e1ce 100644 (file)
@@ -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);