pacman: remove uses of atoi
This commit is contained in:
parent
45ce932fd0
commit
18b65ec909
1 changed files with 2 additions and 2 deletions
|
@ -381,7 +381,7 @@ static int parsearg_global(int opt)
|
|||
break;
|
||||
case OP_ASK:
|
||||
config->noask = 1;
|
||||
config->ask = (unsigned int)atoi(optarg);
|
||||
config->ask = (unsigned int)strtol(optarg, NULL, 10);
|
||||
break;
|
||||
case OP_CACHEDIR:
|
||||
config->cachedirs = alpm_list_add(config->cachedirs, strdup(optarg));
|
||||
|
@ -409,7 +409,7 @@ static int parsearg_global(int opt)
|
|||
* here, error and warning are set in config_new, though perhaps a
|
||||
* --quiet option will remove these later */
|
||||
if(optarg) {
|
||||
unsigned short debug = (unsigned short)atoi(optarg);
|
||||
int debug = strtol(optarg, NULL, 10);
|
||||
switch(debug) {
|
||||
case 2:
|
||||
config->logmask |= ALPM_LOG_FUNCTION;
|
||||
|
|
Loading…
Add table
Reference in a new issue