Update cli-main.c (#114)

Moved pid_t proxy_cmd_pid declaration at begin of block to allow build in c89 (gcc-2.95)
This commit is contained in:
Guillaume Picquet 2021-03-04 13:46:46 +01:00 committed by GitHub
parent 8552a0e9eb
commit ae94f64145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);