diff options
Diffstat (limited to 'openbsd-compat/setenv.c')
-rw-r--r-- | openbsd-compat/setenv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/setenv.c b/openbsd-compat/setenv.c index 1dff15c73..e5c5de62e 100644 --- a/openbsd-compat/setenv.c +++ b/openbsd-compat/setenv.c | |||
@@ -35,12 +35,14 @@ | |||
35 | #ifndef HAVE_SETENV | 35 | #ifndef HAVE_SETENV |
36 | 36 | ||
37 | #if defined(LIBC_SCCS) && !defined(lint) | 37 | #if defined(LIBC_SCCS) && !defined(lint) |
38 | static char *rcsid = "$OpenBSD: setenv.c,v 1.4 2001/07/09 06:57:45 deraadt Exp $"; | 38 | static char *rcsid = "$OpenBSD: setenv.c,v 1.5 2002/12/10 22:44:13 mickey Exp $"; |
39 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
40 | 40 | ||
41 | #include <stdlib.h> | 41 | #include <stdlib.h> |
42 | #include <string.h> | 42 | #include <string.h> |
43 | 43 | ||
44 | char *__findenv(const char *name, int *offset); | ||
45 | |||
44 | /* | 46 | /* |
45 | * __findenv -- | 47 | * __findenv -- |
46 | * Returns pointer to value associated with name, if any, else NULL. | 48 | * Returns pointer to value associated with name, if any, else NULL. |
@@ -92,7 +94,6 @@ setenv(name, value, rewrite) | |||
92 | static int alloced; /* if allocated space before */ | 94 | static int alloced; /* if allocated space before */ |
93 | register char *C; | 95 | register char *C; |
94 | int l_value, offset; | 96 | int l_value, offset; |
95 | char *__findenv(); | ||
96 | 97 | ||
97 | if (*value == '=') /* no `=' in value */ | 98 | if (*value == '=') /* no `=' in value */ |
98 | ++value; | 99 | ++value; |