[openssh-commits] [openssh] 04/04: Fix missing prototype warning for copy_environment
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Jan 21 10:49:30 AEDT 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit b3f7009c9ffa5891283ed96e043001e09934a8d4
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date: Mon Jan 20 11:56:48 2020 +0100
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(-)
diff --git a/session.c b/session.c
index 80738b92..431ccd83 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)
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list