diff options
| author | 2005-03-30 18:51:49 +0000 | |
|---|---|---|
| committer | 2005-03-30 18:51:49 +0000 | |
| commit | d8bc04e435448c902a8c004581e7486635bbff02 (patch) | |
| tree | eb84adde243775bdc6375d84958a66b4eb36c02c /lib/libc/stdlib/setenv.c | |
| parent | Move sasyncd(8), for IPsec SA synchronization, in-tree. Work in progress. (diff) | |
| download | wireguard-openbsd-d8bc04e435448c902a8c004581e7486635bbff02.tar.xz wireguard-openbsd-d8bc04e435448c902a8c004581e7486635bbff02.zip | |
ansi + de-register
ok otto deraadt
Diffstat (limited to 'lib/libc/stdlib/setenv.c')
| -rw-r--r-- | lib/libc/stdlib/setenv.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c index 40305dbe1c8..ce0d3f96999 100644 --- a/lib/libc/stdlib/setenv.c +++ b/lib/libc/stdlib/setenv.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setenv.c,v 1.7 2005/02/16 21:20:22 millert Exp $"; +static char *rcsid = "$OpenBSD: setenv.c,v 1.8 2005/03/30 18:51:49 pat Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdlib.h> @@ -44,10 +44,7 @@ extern char **environ; * "value". If rewrite is set, replace any current value. */ int -setenv(name, value, rewrite) - const char *name; - const char *value; - int rewrite; +setenv(const char *name, const char *value, int rewrite) { static char **lastenv; /* last value of environ */ char *C; @@ -97,8 +94,7 @@ setenv(name, value, rewrite) * Delete environmental variable "name". */ void -unsetenv(name) - const char *name; +unsetenv(const char *name) { char **P; int offset; |
