changeset 1795:f0a524208d97

Update cli-main.c (#114) Moved pid_t proxy_cmd_pid declaration at begin of block to allow build in c89 (gcc-2.95)
author Guillaume Picquet <guillaume.picquet@gls-france.com>
date Thu, 04 Mar 2021 13:46:46 +0100
parents ed20d805b332
children 74f4a5987234
files cli-main.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cli-main.c	Tue Mar 02 22:20:14 2021 +0800
+++ b/cli-main.c	Thu Mar 04 13:46:46 2021 +0100
@@ -47,6 +47,7 @@
 
 	int sock_in, sock_out;
 	struct dropbear_progress_connection *progress = NULL;
+	pid_t proxy_cmd_pid = 0;
 
 	_dropbear_exit = cli_dropbear_exit;
 	_dropbear_log = cli_dropbear_log;
@@ -71,7 +72,6 @@
 		dropbear_exit("signal() error");
 	}
 
-	pid_t proxy_cmd_pid = 0;
 #if DROPBEAR_CLI_PROXYCMD
 	if (cli_opts.proxycmd) {
 		cli_proxy_cmd(&sock_in, &sock_out, &proxy_cmd_pid);