[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() ;
|
||||
exit(0) ;
|
||||
case 'l' :
|
||||
options.result_port = strtoul(optarg, NULL, 0) ;
|
||||
options.result_port = strtoul(optarg, NULL, 10) ;
|
||||
break ;
|
||||
case 't' :
|
||||
options.http_port = strtoul(optarg, NULL, 0) ;
|
||||
options.http_port = strtoul(optarg, NULL, 10) ;
|
||||
break ;
|
||||
case 'q' :
|
||||
options.verbose = false ;
|
||||
|
|
Loading…
Reference in New Issue