mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-23 03:33:48 +00:00
FS-7500: can't use stristr for this
This commit is contained in:
parent
ae4686013a
commit
93db69ed03
@ -987,11 +987,11 @@ static inline int32_t switch_parse_bandwidth_string(const char *bwv)
|
|||||||
|
|
||||||
if (!strcasecmp(bwv, "auto")) {
|
if (!strcasecmp(bwv, "auto")) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (switch_stristr("KB", bwv)) {
|
} else if (strstr(bwv, "KB")) {
|
||||||
bw *= 8;
|
bw *= 8;
|
||||||
} else if (switch_stristr("mb", bwv)) {
|
} else if (strstr(bwv, "mb")) {
|
||||||
bw *= 1024;
|
bw *= 1024;
|
||||||
} else if (switch_stristr("MB", bwv)) {
|
} else if (strstr(bwv, "MB")) {
|
||||||
bw *= 8192;
|
bw *= 8192;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user