/* Check that we did add this route or not */
sk = skp = xstrdup(dhcpcd_skiproutes);
while ((token = strsep(&skp, ","))) {
- if (isdigit((unsigned)*token) && atoi(token) == i)
+ if (isdigit((unsigned char)*token) &&
+ atoi(token) == i)
break;
}
free(sk);
{
CODE *c;
- if (isdigit((unsigned)*priority))
+ if (isdigit((unsigned char)*priority))
return atoi(priority);
for (c = prioritynames; c->c_name; c++)
if (!strcasecmp(priority, c->c_name))
return 0;
}
/* Ensure that digits are hex */
- if (isxdigit((unsigned)c[0]) == 0 ||
- isxdigit((unsigned)c[1]) == 0)
+ if (isxdigit((unsigned char)c[0]) == 0 ||
+ isxdigit((unsigned char)c[1]) == 0)
{
errno = EINVAL;
return 0;