diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-11-10 10:13:06 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-11-10 10:13:06 +1100 |
commit | 32b531067dbfaf1570faad9abadc359b1675e324 (patch) | |
tree | f21417a8b73c062812a9da03b8e33e93c3d56b14 | |
parent | b8c89d14bbd6ea20e1ef785adcfd27d067009f3d (diff) |
- (dtucker) [openbsd-compat/getenv.c] Make __findenv static, remove
unnecessary prototype.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | openbsd-compat/setenv.c | 8 |
2 files changed, 5 insertions, 7 deletions
@@ -2,6 +2,8 @@ | |||
2 | - (dtucker) [openbsd-compat/getenv.c] Merge changes for __findenv from | 2 | - (dtucker) [openbsd-compat/getenv.c] Merge changes for __findenv from |
3 | OpenBSD getenv.c revs 1.4 - 1.8 (ANSIfication of arguments, removal of | 3 | OpenBSD getenv.c revs 1.4 - 1.8 (ANSIfication of arguments, removal of |
4 | "register"). | 4 | "register"). |
5 | - (dtucker) [openbsd-compat/getenv.c] Make __findenv static, remove | ||
6 | unnecessary prototype. | ||
5 | 7 | ||
6 | 20051105 | 8 | 20051105 |
7 | - (djm) OpenBSD CVS Sync | 9 | - (djm) OpenBSD CVS Sync |
@@ -3244,4 +3246,4 @@ | |||
3244 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 3246 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
3245 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 3247 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
3246 | 3248 | ||
3247 | $Id: ChangeLog,v 1.3955 2005/11/09 23:10:10 dtucker Exp $ | 3249 | $Id: ChangeLog,v 1.3956 2005/11/09 23:13:06 dtucker Exp $ |
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 | ||
42 | char *__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 | */ |
55 | char * | 51 | static 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; |