projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6a24cbe
)
Merge commit 'd3ff15fc818887be3720265b297ca7f1ec28c458'
author
Harald Welte
<laforge@gnumonks.org>
Sun, 7 Mar 2010 17:26:40 +0000
(18:26 +0100)
committer
Harald Welte
<laforge@gnumonks.org>
Sun, 7 Mar 2010 17:26:40 +0000
(18:26 +0100)
src/shared/libosmocore/src/gsm_utils.c
patch
|
blob
|
history
diff --git
a/src/shared/libosmocore/src/gsm_utils.c
b/src/shared/libosmocore/src/gsm_utils.c
index
4ee137c
..
97497c8
100644
(file)
--- 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: