- Move netcat struct to where it stays in scope.

--HG--
extra : convert_revision : e35cd321b6d4fab6ad854827249f610da3bb6878
This commit is contained in:
Matt Johnston 2009-08-25 05:24:18 +00:00
parent 2f1ed9a34b
commit d773103730

View File

@ -381,19 +381,19 @@ static int cli_initchansess(struct Channel *channel) {
#ifdef ENABLE_CLI_NETCAT #ifdef ENABLE_CLI_NETCAT
void cli_send_netcat_request() { const struct ChanType cli_chan_netcat = {
const unsigned char* source_host = "127.0.0.1";
const int source_port = 22;
const struct ChanType cli_chan_netcat = {
0, /* sepfds */ 0, /* sepfds */
"direct-tcpip", "direct-tcpip",
cli_init_stdpipe_sess, /* inithandler */ cli_init_stdpipe_sess, /* inithandler */
NULL, NULL,
NULL, NULL,
cli_closechansess cli_closechansess
}; };
void cli_send_netcat_request() {
const unsigned char* source_host = "127.0.0.1";
const int source_port = 22;
cli_opts.wantpty = 0; cli_opts.wantpty = 0;