diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-07 18:23:47 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-07 18:23:47 +0100 |
commit | d3ff15fc818887be3720265b297ca7f1ec28c458 (patch) | |
tree | fa1a597e919991f0524887b6dbf1832a17967c99 /src | |
parent | 48e17f895187100ae7331afa2cbb81594557823f (diff) |
use strtol instead of atoi
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm_utils.c | 2 |
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: |