From: Ruben Kerkhof Date: Mon, 20 Jan 2020 10:56:48 +0000 (+0100) Subject: Fix missing prototype warning for copy_environment X-Git-Tag: V_8_2_P1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f7009c9ffa5891283ed96e043001e09934a8d4;p=thirdparty%2Fopenssh-portable.git 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. --- diff --git a/session.c b/session.c index 80738b927..431ccd832 100644 --- a/session.c +++ b/session.c @@ -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)