diff options
author | Damien Miller <djm@mindrot.org> | 2003-01-08 11:16:48 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-01-08 11:16:48 +1100 |
commit | 13dd03a0e2605f0ec2da811aa814a58bc2dd9a3d (patch) | |
tree | 16312c22195da192458f6e9c8e9b2def232ad2dc /openbsd-compat/setenv.c | |
parent | bc9b7c41e2339cc5158357213dad9f238612705b (diff) |
- (djm) Sync openbsd-compat/ with OpenBSD -current
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 1dff15c7..e5c5de62 100644 --- a/openbsd-compat/setenv.c +++ b/openbsd-compat/setenv.c @@ -35,12 +35,14 @@ #ifndef HAVE_SETENV #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setenv.c,v 1.4 2001/07/09 06:57:45 deraadt Exp $"; +static char *rcsid = "$OpenBSD: setenv.c,v 1.5 2002/12/10 22:44:13 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdlib.h> #include <string.h> +char *__findenv(const char *name, int *offset); + /* * __findenv -- * Returns pointer to value associated with name, if any, else NULL. @@ -92,7 +94,6 @@ setenv(name, value, rewrite) static int alloced; /* if allocated space before */ register char *C; int l_value, offset; - char *__findenv(); if (*value == '=') /* no `=' in value */ ++value; |