mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
use strtol instead of atoi
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user