use strtol instead of atoi

This commit is contained in:
Harald Welte 2010-03-07 18:23:47 +01:00
parent 48e17f8951
commit d3ff15fc81
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ enum gsm_band gsm_band_parse(const char* mhz)
if (*mhz == '\0')
return -EINVAL;
switch (atoi(mhz)) {
switch (strtol(mhz, NULL, 10)) {
case 450:
return GSM_BAND_450;
case 480: