diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-07-27 17:45:34 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-07-27 17:45:34 +1000 |
commit | 0f494236b49fb48c1ef33669f14822ca4f3ce2f4 (patch) | |
tree | 16c77905d22c9c2032a2e77ac772b194842d9e71 /openbsd-compat/setenv.c | |
parent | a1f78e08bdb3eaa88603ba3c6e01de7c8671e28a (diff) | |
download | openssh-git-0f494236b49fb48c1ef33669f14822ca4f3ce2f4.tar.gz |
lastenv is only used in setenv.
Prevents an unused variable warning on platforms that have setenv but
not unsetenv.
Diffstat (limited to 'openbsd-compat/setenv.c')
-rw-r--r-- | openbsd-compat/setenv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/setenv.c b/openbsd-compat/setenv.c index 373b701d..86954c28 100644 --- a/openbsd-compat/setenv.c +++ b/openbsd-compat/setenv.c @@ -39,7 +39,9 @@ #include <string.h> extern char **environ; +#ifndef HAVE_SETENV static char **lastenv; /* last value of environ */ +#endif /* OpenSSH Portable: __findenv is from getenv.c rev 1.8, made static */ /* |