summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 18:23:47 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 18:23:47 +0100
commitd3ff15fc818887be3720265b297ca7f1ec28c458 (patch)
treefa1a597e919991f0524887b6dbf1832a17967c99 /src
parent48e17f895187100ae7331afa2cbb81594557823f (diff)
use strtol instead of atoi
Diffstat (limited to 'src')
-rw-r--r--src/gsm_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm_utils.c b/src/gsm_utils.c
index 4ee137c3..97497c8e 100644
--- a/src/gsm_utils.c
+++ b/src/gsm_utils.c
@@ -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: