summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-10-08 15:25:08 -0700
committerRoland McGrath <roland@hack.frob.com>2011-10-08 15:25:08 -0700
commitc658d255e919d40619cc2a5730d502c7777830cc (patch)
treefa11abc61bc1b46d51ee850bfbe599df924849a6
parent7edb55ce06ab1fa716a062cd1cb6682585bb449d (diff)
downloadglibc-c658d255e919d40619cc2a5730d502c7777830cc.tar.gz
glibc-c658d255e919d40619cc2a5730d502c7777830cc.tar.xz
glibc-c658d255e919d40619cc2a5730d502c7777830cc.zip
Fix some nit warnings.
-rw-r--r--ChangeLog7
-rw-r--r--nscd/nscd_proto.h2
-rw-r--r--nss/getent.c1
-rw-r--r--sysdeps/ieee754/flt-32/s_isinf_nsf.c2
4 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 57a72ca87d..abb83dda1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-08  Roland McGrath  <roland@hack.frob.com>
+
+	* nscd/nscd_proto.h: Declare __nscd_setnetgrent.
+
+	* nss/getent.c (netgroup_keys): Remove unused variable.
+	* sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
+
 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
 
 	* include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
diff --git a/nscd/nscd_proto.h b/nscd/nscd_proto.h
index 8aa29732ef..742c154fac 100644
--- a/nscd/nscd_proto.h
+++ b/nscd/nscd_proto.h
@@ -74,5 +74,7 @@ extern int __nscd_getservbyport_r (int port, const char *proto,
 				   size_t buflen, struct servent **result);
 extern int __nscd_innetgr (const char *netgroup, const char *host,
 			   const char *user, const char *domain);
+extern int __nscd_setnetgrent (const char *group, struct __netgrent *datap);
+
 
 #endif /* _NSCD_PROTO_H */
diff --git a/nss/getent.c b/nss/getent.c
index b843433ed6..7d9422373c 100644
--- a/nss/getent.c
+++ b/nss/getent.c
@@ -472,7 +472,6 @@ static int
 netgroup_keys (int number, char *key[])
 {
   int result = 0;
-  int i;
 
   if (number == 0)
     {
diff --git a/sysdeps/ieee754/flt-32/s_isinf_nsf.c b/sysdeps/ieee754/flt-32/s_isinf_nsf.c
index bc37785168..1e46e2ce4a 100644
--- a/sysdeps/ieee754/flt-32/s_isinf_nsf.c
+++ b/sysdeps/ieee754/flt-32/s_isinf_nsf.c
@@ -14,7 +14,7 @@
 int
 __isinf_nsf (float x)
 {
-	int32_t ix,t;
+	int32_t ix;
 	GET_FLOAT_WORD(ix,x);
 	return (ix & 0x7fffffff) == 0x7f800000;
 }