From: Anthony Minessale Date: Fri, 20 Feb 2015 02:03:47 +0000 (-0600) Subject: FS-7500: can't use stristr for this X-Git-Tag: v1.6.2~614^2~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93db69ed03caf590b84e537c7ccdc4cab2df571c;p=thirdparty%2Ffreeswitch.git FS-7500: can't use stristr for this --- diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index a39edb3e56..0618230056 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -987,11 +987,11 @@ static inline int32_t switch_parse_bandwidth_string(const char *bwv) if (!strcasecmp(bwv, "auto")) { return -1; - } else if (switch_stristr("KB", bwv)) { + } else if (strstr(bwv, "KB")) { bw *= 8; - } else if (switch_stristr("mb", bwv)) { + } else if (strstr(bwv, "mb")) { bw *= 1024; - } else if (switch_stristr("MB", bwv)) { + } else if (strstr(bwv, "MB")) { bw *= 8192; } }