projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(GET_UNSIGNED_NUMBER): Give proper error for spaces.
[gnulib.git]
/
lib
/
setenv.c
diff --git
a/lib/setenv.c
b/lib/setenv.c
index
d397753
..
3ed901b
100644
(file)
--- a/
lib/setenv.c
+++ b/
lib/setenv.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995
, 2000
Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@prep.ai.mit.edu.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@prep.ai.mit.edu.
@@
-19,23
+19,23
@@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
#ifdef HAVE_CONFIG_H
USA. */
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#
include <config.h>
#endif
#include <errno.h>
#if _LIBC || HAVE_STDLIB_H
#endif
#include <errno.h>
#if _LIBC || HAVE_STDLIB_H
-#include <stdlib.h>
+#
include <stdlib.h>
#endif
#if _LIBC || HAVE_STRING_H
#endif
#if _LIBC || HAVE_STRING_H
-#include <string.h>
+#
include <string.h>
#endif
#if _LIBC || HAVE_UNISTD_H
#endif
#if _LIBC || HAVE_UNISTD_H
-#include <unistd.h>
+#
include <unistd.h>
#endif
#ifndef HAVE_GNU_LD
#endif
#ifndef HAVE_GNU_LD
-#
define __environ
environ
+#
define __environ
environ
#endif
int
#endif
int
@@
-110,7
+110,8
@@
setenv (name, value, replace)
}
void
}
void
-unsetenv (const char *name)
+unsetenv (name)
+ const char *name;
{
const size_t len = strlen (name);
char **ep;
{
const size_t len = strlen (name);
char **ep;