changeset 565:1929bbe3fa84

merge of '0d7a9127af37d6e74efc5ec031a7001ce63d334d' and 'e35cd321b6d4fab6ad854827249f610da3bb6878'
author Matt Johnston <matt@ucc.asn.au>
date Tue, 25 Aug 2009 11:11:35 +0000
parents 12fc5b342dc0 (current diff) fad3eb63b907 (diff)
children b321aeb57c64
files
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/cli-chansession.c	Thu Aug 13 14:57:27 2009 +0000
+++ b/cli-chansession.c	Tue Aug 25 11:11:35 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)