From b3f7009c9ffa5891283ed96e043001e09934a8d4 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 20 Jan 2020 11:56:48 +0100 Subject: 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. --- session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'session.c') 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) -- cgit v1.2.3