More function flatening

This commit is contained in:
Dale Weiler 2013-04-14 01:16:35 +00:00
parent ccc2eb3298
commit a25bd052d7
2 changed files with 2 additions and 2 deletions

2
main.c
View file

@ -403,7 +403,7 @@ static bool options_parse(int argc, char **argv) {
return false;
}
if (isdigit(argarg[0])) {
uint32_t val = atoi(argarg);
uint32_t val = (uint32_t)strtol(argarg, NULL, 10);
OPTS_OPTION_U32(OPTION_O) = val;
opts_setoptimlevel(val);
} else {

2
opts.c
View file

@ -257,7 +257,7 @@ static size_t opts_ini_parse (
static bool opts_ini_bool(const char *value) {
if (!strcmp(value, "true")) return true;
if (!strcmp(value, "false")) return false;
return !!atoi(value);
return !!strtoul(value, NULL, 10);
}
static char *opts_ini_load(const char *section, const char *name, const char *value) {