changeset 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 e430a26064ee
children bde853a9e680
files cli-runopts.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cli-runopts.c	Wed Aug 08 15:57:50 2007 +0000
+++ b/cli-runopts.c	Tue Sep 11 12:00:18 2007 +0000
@@ -89,6 +89,9 @@
 #endif
 	char* dummy = NULL; /* Not used for anything real */
 
+	char* recv_window_arg = NULL;
+	char* keepalive_arg = NULL;
+
 	/* see printhelp() for options */
 	cli_opts.progname = argv[0];
 	cli_opts.remotehost = NULL;
@@ -114,8 +117,6 @@
 	opts.ipv6 = 1;
 	*/
 	opts.recv_window = DEFAULT_RECV_WINDOW;
-	char* recv_window_arg = NULL;
-	char* keepalive_arg = NULL;
 
 	/* Iterate all the arguments */
 	for (i = 1; i < (unsigned int)argc; i++) {