diff options
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2020-01-20 11:56:48 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-01-21 10:47:29 +1100 |
commit | b3f7009c9ffa5891283ed96e043001e09934a8d4 (patch) | |
tree | ac6155c2253a74dc7f2610b38deccd47a265c5e6 /session.c | |
parent | 0c428c0e991e2c4fabc48cf5d9b8f84c9412e0c3 (diff) |
Fix missing prototype warning for copy_environment
This function is only used in this file, and only on Cygwin, so make
it static and hide it behind HAVE_CYGWIN. Prevents missing prototype
warning.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -974,11 +974,13 @@ copy_environment_blacklist(char **source, char ***env, u_int *envsize, | |||
974 | } | 974 | } |
975 | } | 975 | } |
976 | 976 | ||
977 | void | 977 | #ifdef HAVE_CYGWIN |
978 | static void | ||
978 | copy_environment(char **source, char ***env, u_int *envsize) | 979 | copy_environment(char **source, char ***env, u_int *envsize) |
979 | { | 980 | { |
980 | copy_environment_blacklist(source, env, envsize, NULL); | 981 | copy_environment_blacklist(source, env, envsize, NULL); |
981 | } | 982 | } |
983 | #endif | ||
982 | 984 | ||
983 | static char ** | 985 | static char ** |
984 | do_setup_env(struct ssh *ssh, Session *s, const char *shell) | 986 | do_setup_env(struct ssh *ssh, Session *s, const char *shell) |