summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-09-11 12:00:18 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-09-11 12:00:18 +0000
commit09b19d2cf54e3957b3b57f50c73dc0d03544b0ed (patch)
treeaac868be451b6ae54a727c84eed0c81fec466be1
parent93a722f7c1864f3c27172cac03f04ddeeef0f7af (diff)
downloaddropbear-09b19d2cf54e3957b3b57f50c73dc0d03544b0ed.tar.gz
Make sure declarations of variables are at the top of function,
pointed out by Alexey Rusakov.
-rw-r--r--cli-runopts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli-runopts.c b/cli-runopts.c
index 68990fa..42c5a9f 100644
--- a/cli-runopts.c
+++ b/cli-runopts.c
@@ -89,6 +89,9 @@ void cli_getopts(int argc, char ** argv) {
#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 @@ void cli_getopts(int argc, char ** argv) {
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++) {