mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Squelch conversion warnings around tolower()
This commit is contained in:
parent
7729fa9773
commit
c21d47b8a9
@ -304,7 +304,7 @@ openResource(stream_t stream, const char *fileName, int *popenFlag,
|
|||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
strlcpy(extension, p, sizeof(extension));
|
strlcpy(extension, p, sizeof(extension));
|
||||||
for (p = extension; *p != '\0'; p++)
|
for (p = extension; *p != '\0'; p++)
|
||||||
*p = tolower((int)*p);
|
*p = (char)tolower((int)*p);
|
||||||
|
|
||||||
if (strlen(extension) == 0) {
|
if (strlen(extension) == 0) {
|
||||||
log_error("%s: cannot determine file type", fileName);
|
log_error("%s: cannot determine file type", fileName);
|
||||||
|
@ -235,10 +235,10 @@ util_strrcasecmp(const char *s, const char *sub)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
for (p = s_cpy; *p != '\0'; p++)
|
for (p = s_cpy; *p != '\0'; p++)
|
||||||
*p = tolower((int)*p);
|
*p = (char)tolower((int)*p);
|
||||||
|
|
||||||
for (p = sub_cpy; *p != '\0'; p++)
|
for (p = sub_cpy; *p != '\0'; p++)
|
||||||
*p = tolower((int)*p);
|
*p = (char)tolower((int)*p);
|
||||||
|
|
||||||
ret = util_strrcmp(s_cpy, sub_cpy);
|
ret = util_strrcmp(s_cpy, sub_cpy);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user