summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuillaume Picquet <guillaume.picquet@gls-france.com>2021-03-04 13:46:46 +0100
committerGitHub <noreply@github.com>2021-03-04 20:46:46 +0800
commitae94f6414573cf548e9f4218f7bbd4d4fdc30206 (patch)
tree8979c281e0cb7a8ddb06b396d2f00948b29d9cfc
parent8552a0e9eba1bb3a644543d2d63b0789f2e779e5 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-main.c b/cli-main.c
index 7f455d1..5d0b9cf 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -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);