projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
867cf3b
)
getgroups: avoid compiler warning
author
Eric Blake
<ebb9@byu.net>
Fri, 13 Nov 2009 20:31:35 +0000
(13:31 -0700)
committer
Ian 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
patch
|
blob
|
history
lib/getgroups.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
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.
diff --git
a/lib/getgroups.c
b/lib/getgroups.c
index
24d7816
..
bc93683
100644
(file)
--- a/
lib/getgroups.c
+++ b/
lib/getgroups.c
@@
-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);