summaryrefslogtreecommitdiff
path: root/openbsd-compat/setenv.c
diff options
context:
space:
mode:
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 9f746ded0..7894c485a 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 $
39#include <stdlib.h> 39#include <stdlib.h>
40#include <string.h> 40#include <string.h>
41 41
42char *__findenv(const char *name, int *offset); 42/* OpenSSH Portable: __findenv is from getenv.c rev 1.8, made static */
43
44/* OpenSSH Portable: __findenv is from getenv.c rev 1.8 */
45 43
46/* 44/*
47 * __findenv -- 45 * __findenv --
@@ -49,10 +47,8 @@ char *__findenv(const char *name, int *offset);
49 * Sets offset to be the offset of the name/value combination in the 47 * Sets offset to be the offset of the name/value combination in the
50 * environmental array, for use by setenv(3) and unsetenv(3). 48 * environmental array, for use by setenv(3) and unsetenv(3).
51 * Explicitly removes '=' in argument name. 49 * Explicitly removes '=' in argument name.
52 *
53 * This routine *should* be a static; don't use it.
54 */ 50 */
55char * 51static char *
56__findenv(const char *name, int *offset) 52__findenv(const char *name, int *offset)
57{ 53{
58 extern char **environ; 54 extern char **environ;