[UDP-HTTP] Base 10 for numbers from command line
This commit is contained in:
parent
c4cf57c903
commit
333be113d6
|
@ -148,10 +148,10 @@ void parse_options(int argc, char **argv)
|
||||||
print_usage() ;
|
print_usage() ;
|
||||||
exit(0) ;
|
exit(0) ;
|
||||||
case 'l' :
|
case 'l' :
|
||||||
options.result_port = strtoul(optarg, NULL, 0) ;
|
options.result_port = strtoul(optarg, NULL, 10) ;
|
||||||
break ;
|
break ;
|
||||||
case 't' :
|
case 't' :
|
||||||
options.http_port = strtoul(optarg, NULL, 0) ;
|
options.http_port = strtoul(optarg, NULL, 10) ;
|
||||||
break ;
|
break ;
|
||||||
case 'q' :
|
case 'q' :
|
||||||
options.verbose = false ;
|
options.verbose = false ;
|
||||||
|
|
Loading…
Reference in New Issue