diff options
author | mickey <> | 2002-12-10 22:44:13 +0000 |
---|---|---|
committer | mickey <> | 2002-12-10 22:44:13 +0000 |
commit | 3aa45ad8adef31b662a315f8bb0a3bb881e8c7ed (patch) | |
tree | eb324d9f211df64a521a036a7439df1f0453621b /src/lib/libc/stdlib/setenv.c | |
parent | 83ad17becc7b265b14a39b57523c4abeff727ebc (diff) | |
download | openbsd-3aa45ad8adef31b662a315f8bb0a3bb881e8c7ed.tar.gz openbsd-3aa45ad8adef31b662a315f8bb0a3bb881e8c7ed.tar.bz2 openbsd-3aa45ad8adef31b662a315f8bb0a3bb881e8c7ed.zip |
use proper __findenv() prototype; millert@ ok
Diffstat (limited to 'src/lib/libc/stdlib/setenv.c')
-rw-r--r-- | src/lib/libc/stdlib/setenv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/setenv.c b/src/lib/libc/stdlib/setenv.c index fc7c67a5db..044f01b1c9 100644 --- a/src/lib/libc/stdlib/setenv.c +++ b/src/lib/libc/stdlib/setenv.c | |||
@@ -32,12 +32,14 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: setenv.c,v 1.4 2001/07/09 06:57:45 deraadt Exp $"; | 35 | static char *rcsid = "$OpenBSD: setenv.c,v 1.5 2002/12/10 22:44:13 mickey Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | #include <string.h> | 39 | #include <string.h> |
40 | 40 | ||
41 | char *__findenv(const char *name, int *offset); | ||
42 | |||
41 | /* | 43 | /* |
42 | * setenv -- | 44 | * setenv -- |
43 | * Set the value of the environmental variable "name" to be | 45 | * Set the value of the environmental variable "name" to be |
@@ -53,7 +55,6 @@ setenv(name, value, rewrite) | |||
53 | static int alloced; /* if allocated space before */ | 55 | static int alloced; /* if allocated space before */ |
54 | register char *C; | 56 | register char *C; |
55 | int l_value, offset; | 57 | int l_value, offset; |
56 | char *__findenv(); | ||
57 | 58 | ||
58 | if (*value == '=') /* no `=' in value */ | 59 | if (*value == '=') /* no `=' in value */ |
59 | ++value; | 60 | ++value; |