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 b0b3016..fdb892b 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 c07f2de..e2bb68e 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);