summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 18:26:40 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 18:26:40 +0100
commit8b8a7c25fb9ffd4d6820e34d13a2b6e5b7918df1 (patch)
tree6a2de778cc81a0cd0814fd0441dfab94f43655e2 /src/shared/libosmocore/src
parent6a24cbe756b25d4d2203848dd8df1b7fc1c4fb63 (diff)
parentd3ff15fc818887be3720265b297ca7f1ec28c458 (diff)
Merge commit 'd3ff15fc818887be3720265b297ca7f1ec28c458'
Diffstat (limited to 'src/shared/libosmocore/src')
-rw-r--r--src/shared/libosmocore/src/gsm_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/libosmocore/src/gsm_utils.c b/src/shared/libosmocore/src/gsm_utils.c
index 4ee137c3..97497c8e 100644
--- a/src/shared/libosmocore/src/gsm_utils.c
+++ b/src/shared/libosmocore/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: