diff options
author | Damien Miller <djm@mindrot.org> | 2020-01-21 12:32:16 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-01-21 12:32:16 +1100 |
commit | a8bd5fdbdb7581afc7123a042a7cd6ca25357388 (patch) | |
tree | 8537b73c568e1ffe6888154d5c1999082f0b1487 /session.c | |
parent | 10ecc647fc1db8d2dde9f6b9b826b201dfc48b62 (diff) |
Wrap copy_environment_blacklist() in #ifdef
It's only needed for USE_PAM or HAVE_CYGWIN cases and will cause compiler
warnings otherwise.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -946,6 +946,7 @@ read_etc_default_login(char ***env, u_int *envsize, uid_t uid) | |||
946 | } | 946 | } |
947 | #endif /* HAVE_ETC_DEFAULT_LOGIN */ | 947 | #endif /* HAVE_ETC_DEFAULT_LOGIN */ |
948 | 948 | ||
949 | #if defined(USE_PAM) || defined(HAVE_CYGWIN) | ||
949 | static void | 950 | static void |
950 | copy_environment_blacklist(char **source, char ***env, u_int *envsize, | 951 | copy_environment_blacklist(char **source, char ***env, u_int *envsize, |
951 | const char *blacklist) | 952 | const char *blacklist) |
@@ -973,6 +974,7 @@ copy_environment_blacklist(char **source, char ***env, u_int *envsize, | |||
973 | free(var_name); | 974 | free(var_name); |
974 | } | 975 | } |
975 | } | 976 | } |
977 | #endif /* defined(USE_PAM) || defined(HAVE_CYGWIN) */ | ||
976 | 978 | ||
977 | #ifdef HAVE_CYGWIN | 979 | #ifdef HAVE_CYGWIN |
978 | static void | 980 | static void |