summaryrefslogtreecommitdiff
path: root/openbsd-compat/setenv.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-10 10:13:06 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-10 10:13:06 +1100
commit32b531067dbfaf1570faad9abadc359b1675e324 (patch)
treef21417a8b73c062812a9da03b8e33e93c3d56b14 /openbsd-compat/setenv.c
parentb8c89d14bbd6ea20e1ef785adcfd27d067009f3d (diff)
- (dtucker) [openbsd-compat/getenv.c] Make __findenv static, remove
unnecessary prototype.
Diffstat (limited to 'openbsd-compat/setenv.c')
-rw-r--r--openbsd-compat/setenv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/openbsd-compat/setenv.c b/openbsd-compat/setenv.c
index 9f746ded..7894c485 100644
--- a/openbsd-compat/setenv.c
+++ b/openbsd-compat/setenv.c
@@ -39,9 +39,7 @@ static char *rcsid = "$OpenBSD: setenv.c,v 1.6 2003/06/02 20:18:38 millert Exp $
#include <stdlib.h>
#include <string.h>
-char *__findenv(const char *name, int *offset);
-
-/* OpenSSH Portable: __findenv is from getenv.c rev 1.8 */
+/* OpenSSH Portable: __findenv is from getenv.c rev 1.8, made static */
/*
* __findenv --
@@ -49,10 +47,8 @@ char *__findenv(const char *name, int *offset);
* Sets offset to be the offset of the name/value combination in the
* environmental array, for use by setenv(3) and unsetenv(3).
* Explicitly removes '=' in argument name.
- *
- * This routine *should* be a static; don't use it.
*/
-char *
+static char *
__findenv(const char *name, int *offset)
{
extern char **environ;