FS-7500: can't use stristr for this

This commit is contained in:
Anthony Minessale 2015-02-19 20:03:47 -06:00 committed by Michael Jerris
parent ae4686013a
commit 93db69ed03

View File

@ -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;
} }
} }