diff options
author | Guillaume Picquet <guillaume.picquet@gls-france.com> | 2021-03-04 13:46:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 20:46:46 +0800 |
commit | ae94f6414573cf548e9f4218f7bbd4d4fdc30206 (patch) | |
tree | 8979c281e0cb7a8ddb06b396d2f00948b29d9cfc | |
parent | 8552a0e9eba1bb3a644543d2d63b0789f2e779e5 (diff) |
Update cli-main.c (#114)
Moved pid_t proxy_cmd_pid declaration at begin of block to allow build in c89 (gcc-2.95)
-rw-r--r-- | cli-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,6 +47,7 @@ int main(int argc, char ** argv) { 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 @@ int main(int argc, char ** argv) { 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); |