From b0772d3be54b5bac2f1e45356eadd3c6a8277fd6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 24 Oct 1998 15:02:35 +0000 Subject: [PATCH] Update. 1998-10-23 Andreas Jaeger * rt/aio.h: Move __aio_init to... * include/aio.h: ...here. 1998-10-24 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate definition of O_LARGEFILE. 1998-10-24 Andreas Jaeger * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path as first argument to statfs. 1998-10-24 Andreas Jaeger * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else. 1998-10-24 Andreas Jaeger * malloc/mtrace.c: Include for strlen. --- ChangeLog | 23 +++++++++++++++++++++++ sysdeps/generic/setenv.c | 12 +++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c788160..2ef2034 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +1998-10-23 Andreas Jaeger + + * rt/aio.h: Move __aio_init to... + * include/aio.h: ...here. + +1998-10-24 Andreas Jaeger + + * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate + definition of O_LARGEFILE. + +1998-10-24 Andreas Jaeger + + * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path + as first argument to statfs. + +1998-10-24 Andreas Jaeger + + * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else. + +1998-10-24 Andreas Jaeger + + * malloc/mtrace.c: Include for strlen. + 1998-10-24 Roland McGrath * sysdeps/mach/hurd/bits/environments.h: New file. diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c index b2ebbad..21d9b67 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) { -- 2.7.4