about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog23
-rw-r--r--sysdeps/generic/setenv.c12
2 files changed, 30 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index c788160937..2ef2034819 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de> 
+ 
+	* rt/aio.h: Move __aio_init to... 
+	* include/aio.h: ...here. 
+         
+1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de> 
+ 
+	* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate 
+	definition of O_LARGEFILE. 
+ 
+1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de> 
+ 
+	* sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path 
+	as first argument to statfs. 
+ 
+1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de> 
+ 
+	* sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else. 
+ 
+1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de> 
+ 
+	* malloc/mtrace.c: Include <string.h> for strlen. 
+ 
 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
 
 	* sysdeps/mach/hurd/bits/environments.h: New file.
diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c
index b2ebbadfaa..21d9b675cb 100644
--- a/sysdeps/generic/setenv.c
+++ b/sysdeps/generic/setenv.c
@@ -115,11 +115,13 @@ setenv (name, value, replace)
 
   size = 0;
   if (__environ != NULL)
-    for (ep = __environ; *ep != NULL; ++ep)
-      if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=')
-	break;
-      else
-	++size;
+    {
+      for (ep = __environ; *ep != NULL; ++ep)
+	if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=')
+	  break;
+	else
+	  ++size;
+    }
 
   if (__environ == NULL || *ep == NULL)
     {