# HG changeset patch # User Eric Blake # Date 1258144295 25200 # Node ID 6af71b5d90fdaa6d52b8ff23107bfa2dfa6669ff # Parent fcf83d7e45e45baf7b86f4bd31710ecb240325f9 getgroups: avoid compiler warning * lib/getgroups.c (rpl_getgroups): Delete shadowed variable. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- 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 --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -67,7 +67,6 @@ if (n != 0 || !GETGROUPS_ZERO_BUG) { int result; - int saved_errno; if (sizeof *group == sizeof *gbuf) return getgroups (n, (GETGROUPS_T *) group);