From: Eric Blake Date: Fri, 13 Nov 2009 20:31:35 +0000 (-0700) Subject: getgroups: avoid compiler warning X-Git-Tag: v0.1~5202 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=cf0c4abc71ea50e9b9dc511bde1e4f1c1face4d4;p=gnulib.git getgroups: avoid compiler warning * lib/getgroups.c (rpl_getgroups): Delete shadowed variable. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index b0b301690..fdb892b36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-11-13 Eric Blake + 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. diff --git a/lib/getgroups.c b/lib/getgroups.c index c07f2de23..e2bb68eff 100644 --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -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);