More casting for ctype

pull/92/head
Baptiste Daroussin 2015-12-02 14:59:51 +01:00
parent 7898b8297e
commit cb83dab4ad
2 changed files with 4 additions and 4 deletions

View File

@ -108,11 +108,11 @@ pkgconf_dependency_parse_str(pkgconf_list_t *deplist_head, const char *depends)
break;
case INSIDE_MODULE_NAME:
if (isspace(*ptr))
if (isspace((unsigned int)*ptr))
{
const char *sptr = ptr;
while (*sptr && isspace(*sptr))
while (*sptr && isspace((unsigned int)*sptr))
sptr++;
if (*sptr == '\0')
@ -176,7 +176,7 @@ pkgconf_dependency_parse_str(pkgconf_list_t *deplist_head, const char *depends)
break;
case AFTER_OPERATOR:
if (!isspace(*ptr))
if (!isspace((unsigned int)*ptr))
{
vstart = ptr;
state = INSIDE_VERSION;

2
main.c
View File

@ -848,7 +848,7 @@ main(int argc, char *argv[])
if (package == NULL)
break;
while (isspace(package[0]))
while (isspace((unsigned int)package[0]))
package++;
/* skip empty packages */