Mercurial > dropbear
comparison svr-runopts.c @ 568:005530560594
Rearrange getaddrstring() etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 01 Sep 2009 16:38:26 +0000 |
parents | a3748e54273c |
children | f9b5dc0cba61 |
comparison
equal
deleted
inserted
replaced
567:893a9dd0b9dd | 568:005530560594 |
---|---|
294 dropbear_exit("Bad recv window '%s'", recv_window_arg); | 294 dropbear_exit("Bad recv window '%s'", recv_window_arg); |
295 } | 295 } |
296 } | 296 } |
297 | 297 |
298 if (keepalive_arg) { | 298 if (keepalive_arg) { |
299 if (m_str_to_uint(keepalive_arg, &opts.keepalive_secs) == DROPBEAR_FAILURE) { | 299 unsigned int val; |
300 if (m_str_to_uint(keepalive_arg, &val) == DROPBEAR_FAILURE) { | |
300 dropbear_exit("Bad keepalive '%s'", keepalive_arg); | 301 dropbear_exit("Bad keepalive '%s'", keepalive_arg); |
301 } | 302 } |
303 opts.keepalive_secs = val; | |
302 } | 304 } |
303 | 305 |
304 if (idle_timeout_arg) { | 306 if (idle_timeout_arg) { |
305 if (m_str_to_uint(idle_timeout_arg, &opts.idle_timeout_secs) == DROPBEAR_FAILURE) { | 307 unsigned int val; |
308 if (m_str_to_uint(idle_timeout_arg, &val) == DROPBEAR_FAILURE) { | |
306 dropbear_exit("Bad idle_timeout '%s'", idle_timeout_arg); | 309 dropbear_exit("Bad idle_timeout '%s'", idle_timeout_arg); |
307 } | 310 } |
311 opts.idle_timeout_secs = val; | |
308 } | 312 } |
309 } | 313 } |
310 | 314 |
311 static void addportandaddress(char* spec) { | 315 static void addportandaddress(char* spec) { |
312 | 316 |