diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-02-20 23:16:38 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-02-20 23:16:38 +0800 |
commit | c7b7e89f7568626e4f2ce59b24636df31667fa64 (patch) | |
tree | 3bcaecf65e2afa1cbe41d70824fb93dc080868ee /cli-main.c | |
parent | def06d6af9403251e6f4cd1ee3700b8906d42ed5 (diff) | |
download | dropbear-c7b7e89f7568626e4f2ce59b24636df31667fa64.tar.gz |
Move generic network routines to netio.c
Diffstat (limited to 'cli-main.c')
-rw-r--r-- | cli-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,6 +30,7 @@ #include "session.h" #include "dbrandom.h" #include "crypto_desc.h" +#include "netio.h" static void cli_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; static void cli_dropbear_log(int priority, const char* format, va_list param); @@ -46,7 +47,6 @@ int main(int argc, char ** argv) { #endif int sock_in, sock_out; - char* error = NULL; struct dropbear_progress_connection *progress = NULL; _dropbear_exit = cli_dropbear_exit; @@ -73,7 +73,7 @@ int main(int argc, char ** argv) { } else #endif { - progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL); + progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, &ses); sock_in = sock_out = -1; } |