diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-09-11 12:00:18 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-09-11 12:00:18 +0000 |
commit | 9a2cdc299fc749e4d8259adb70daa1f3701f48ae (patch) | |
tree | aac868be451b6ae54a727c84eed0c81fec466be1 | |
parent | 58296a95f1c8d987a4b6834aa5998a2ba1d3f1c5 (diff) |
Make sure declarations of variables are at the top of function,
pointed out by Alexey Rusakov.
--HG--
extra : convert_revision : 6c4d376f9c88f94c3c9b23e32f9135c132e26fa8
-rw-r--r-- | cli-runopts.c | 5 |
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++) { |