diff options
author | Matt Johnston <matt@ucc.asn.au> | 2009-09-01 16:38:26 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2009-09-01 16:38:26 +0000 |
commit | f88bed7a30d4c327b42dcd28ce7642ba74dfe592 (patch) | |
tree | 2ed69d42fbba50d167daf6e5142edb0980386d8e /svr-runopts.c | |
parent | ccd02552ddf0fd0b7bfcc29d8c5eb38dd459c465 (diff) |
Rearrange getaddrstring() etc
--HG--
extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
Diffstat (limited to 'svr-runopts.c')
-rw-r--r-- | svr-runopts.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svr-runopts.c b/svr-runopts.c index 4f1355a..4e59b75 100644 --- a/svr-runopts.c +++ b/svr-runopts.c @@ -296,15 +296,19 @@ void svr_getopts(int argc, char ** argv) { } if (keepalive_arg) { - if (m_str_to_uint(keepalive_arg, &opts.keepalive_secs) == DROPBEAR_FAILURE) { + unsigned int val; + if (m_str_to_uint(keepalive_arg, &val) == DROPBEAR_FAILURE) { dropbear_exit("Bad keepalive '%s'", keepalive_arg); } + opts.keepalive_secs = val; } if (idle_timeout_arg) { - if (m_str_to_uint(idle_timeout_arg, &opts.idle_timeout_secs) == DROPBEAR_FAILURE) { + unsigned int val; + if (m_str_to_uint(idle_timeout_arg, &val) == DROPBEAR_FAILURE) { dropbear_exit("Bad idle_timeout '%s'", idle_timeout_arg); } + opts.idle_timeout_secs = val; } } |