summaryrefslogtreecommitdiffhomepage
path: root/svr-runopts.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-09-01 16:38:26 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-09-01 16:38:26 +0000
commitf88bed7a30d4c327b42dcd28ce7642ba74dfe592 (patch)
tree2ed69d42fbba50d167daf6e5142edb0980386d8e /svr-runopts.c
parentccd02552ddf0fd0b7bfcc29d8c5eb38dd459c465 (diff)
Rearrange getaddrstring() etc
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
Diffstat (limited to 'svr-runopts.c')
-rw-r--r--svr-runopts.c8
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;
}
}