comparison cli-runopts.c @ 459:f4addc06745b

Make sure declarations of variables are at the top of function, pointed out by Alexey Rusakov.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 11 Sep 2007 12:00:18 +0000
parents 7e43f5e473b9
children 33d5e9fb0f78 e3db1f7a2e43 12d845ab7b5f
comparison
equal deleted inserted replaced
457:e430a26064ee 459:f4addc06745b
87 #ifdef ENABLE_CLI_REMOTETCPFWD 87 #ifdef ENABLE_CLI_REMOTETCPFWD
88 int nextisremote = 0; 88 int nextisremote = 0;
89 #endif 89 #endif
90 char* dummy = NULL; /* Not used for anything real */ 90 char* dummy = NULL; /* Not used for anything real */
91 91
92 char* recv_window_arg = NULL;
93 char* keepalive_arg = NULL;
94
92 /* see printhelp() for options */ 95 /* see printhelp() for options */
93 cli_opts.progname = argv[0]; 96 cli_opts.progname = argv[0];
94 cli_opts.remotehost = NULL; 97 cli_opts.remotehost = NULL;
95 cli_opts.remoteport = NULL; 98 cli_opts.remoteport = NULL;
96 cli_opts.username = NULL; 99 cli_opts.username = NULL;
112 /* not yet 115 /* not yet
113 opts.ipv4 = 1; 116 opts.ipv4 = 1;
114 opts.ipv6 = 1; 117 opts.ipv6 = 1;
115 */ 118 */
116 opts.recv_window = DEFAULT_RECV_WINDOW; 119 opts.recv_window = DEFAULT_RECV_WINDOW;
117 char* recv_window_arg = NULL;
118 char* keepalive_arg = NULL;
119 120
120 /* Iterate all the arguments */ 121 /* Iterate all the arguments */
121 for (i = 1; i < (unsigned int)argc; i++) { 122 for (i = 1; i < (unsigned int)argc; i++) {
122 #ifdef ENABLE_CLI_PUBKEY_AUTH 123 #ifdef ENABLE_CLI_PUBKEY_AUTH
123 if (nextiskey) { 124 if (nextiskey) {