getgroups: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Fri, 13 Nov 2009 20:31:35 +0000 (13:31 -0700)
committerEric Blake <ebb9@byu.net>
Fri, 13 Nov 2009 20:31:35 +0000 (13:31 -0700)
* lib/getgroups.c (rpl_getgroups): Delete shadowed variable.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/getgroups.c

index b0b301690abe1d60bd855fea06a60dd782736ab3..fdb892b365319680b4a9589d313b4e1ab65947da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-11-13  Eric Blake  <ebb9@byu.net>
 
+       getgroups: avoid compiler warning
+       * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
+
        getgroups: work around FreeBSD bug
        * lib/getgroups.c (rpl_getgroups): Work around the bug.
        * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
index c07f2de2389663196b09d1e3a44927375d20c3b4..e2bb68eff290529db5e987abe80574b2912c870f 100644 (file)
@@ -67,7 +67,6 @@ rpl_getgroups (int n, gid_t *group)
   if (n != 0 || !GETGROUPS_ZERO_BUG)
     {
       int result;
-      int saved_errno;
       if (sizeof *group == sizeof *gbuf)
         return getgroups (n, (GETGROUPS_T *) group);