1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Squelch conversion warnings around tolower()

This commit is contained in:
Moritz Grimm 2017-09-15 19:24:40 +02:00
parent 7729fa9773
commit c21d47b8a9
2 changed files with 3 additions and 3 deletions

View File

@ -304,7 +304,7 @@ openResource(stream_t stream, const char *fileName, int *popenFlag,
if (p != NULL)
strlcpy(extension, p, sizeof(extension));
for (p = extension; *p != '\0'; p++)
*p = tolower((int)*p);
*p = (char)tolower((int)*p);
if (strlen(extension) == 0) {
log_error("%s: cannot determine file type", fileName);

View File

@ -235,10 +235,10 @@ util_strrcasecmp(const char *s, const char *sub)
int ret;
for (p = s_cpy; *p != '\0'; p++)
*p = tolower((int)*p);
*p = (char)tolower((int)*p);
for (p = sub_cpy; *p != '\0'; p++)
*p = tolower((int)*p);
*p = (char)tolower((int)*p);
ret = util_strrcmp(s_cpy, sub_cpy);