# HG changeset patch # User Guillaume Picquet # Date 1614862006 -3600 # Node ID f0a524208d978cd467b205cb3f2c15558889f71f # Parent ed20d805b33214e48907c32658ede7bb4cd6ff96 Update cli-main.c (#114) Moved pid_t proxy_cmd_pid declaration at begin of block to allow build in c89 (gcc-2.95) diff -r ed20d805b332 -r f0a524208d97 cli-main.c --- 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);