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.
This commit is contained in:
Ruben Kerkhof 2020-01-20 11:56:48 +01:00 committed by Darren Tucker
parent 0c428c0e99
commit b3f7009c9f

View File

@ -974,11 +974,13 @@ copy_environment_blacklist(char **source, char ***env, u_int *envsize,
}
}
void
#ifdef HAVE_CYGWIN
static void
copy_environment(char **source, char ***env, u_int *envsize)
{
copy_environment_blacklist(source, env, envsize, NULL);
}
#endif
static char **
do_setup_env(struct ssh *ssh, Session *s, const char *shell)