# HG changeset patch # User Matt Johnston # Date 1251177858 0 # Node ID fad3eb63b907d78a648a87e2a6868110ac2a59ac # Parent 541ebf5bf0f6806fde624a5c93e5d94c7f4691f9 - Move netcat struct to where it stays in scope. diff -r 541ebf5bf0f6 -r fad3eb63b907 cli-chansession.c --- a/cli-chansession.c Thu Jul 30 15:15:12 2009 +0000 +++ b/cli-chansession.c Tue Aug 25 05:24:18 2009 +0000 @@ -381,20 +381,20 @@ #ifdef ENABLE_CLI_NETCAT +const struct ChanType cli_chan_netcat = { + 0, /* sepfds */ + "direct-tcpip", + cli_init_stdpipe_sess, /* inithandler */ + NULL, + NULL, + cli_closechansess +}; + void cli_send_netcat_request() { const unsigned char* source_host = "127.0.0.1"; const int source_port = 22; - const struct ChanType cli_chan_netcat = { - 0, /* sepfds */ - "direct-tcpip", - cli_init_stdpipe_sess, /* inithandler */ - NULL, - NULL, - cli_closechansess - }; - cli_opts.wantpty = 0; if (send_msg_channel_open_init(STDIN_FILENO, &cli_chan_netcat)