getgroups: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Fri, 13 Nov 2009 20:31:35 +0000 (13:31 -0700)
committerIan Beckwith <ianb@erislabs.net>
Sun, 15 Nov 2009 03:24:02 +0000 (03:24 +0000)
* lib/getgroups.c (rpl_getgroups): Delete shadowed variable.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit cf0c4abc71ea50e9b9dc511bde1e4f1c1face4d4)

ChangeLog
lib/getgroups.c

index a5b88a4..416bcf4 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 24d7816..bc93683 100644 (file)
@@ -67,7 +67,6 @@ rpl_getgroups (int n, GETGROUPS_T *group)
   if (n != 0 || !GETGROUPS_ZERO_BUG)
     {
       int result;
-      int saved_errno;
       if (sizeof *group == sizeof *gbuf)
         return getgroups (n, (GETGROUPS_T *) group);