mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-24 02:42:25 +00:00
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:
parent
0c428c0e99
commit
b3f7009c9f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user