From: Roy Marples Date: Thu, 17 Apr 2008 10:08:48 +0000 (+0000) Subject: Specify char X-Git-Tag: v4.0.2~477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbfa778bd60d03b511d8c7639dd78f59ec42f471;p=thirdparty%2Fdhcpcd.git Specify char --- diff --git a/configure.c b/configure.c index 6554cac2..1e30885c 100644 --- a/configure.c +++ b/configure.c @@ -241,7 +241,8 @@ configure_routes(struct interface *iface, const struct dhcp_message *dhcp, /* 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); diff --git a/logger.c b/logger.c index bdd64cf5..da9338d1 100644 --- a/logger.c +++ b/logger.c @@ -47,7 +47,7 @@ logtolevel(const char *priority) { 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)) diff --git a/net.c b/net.c index e692b49b..10661956 100644 --- a/net.c +++ b/net.c @@ -154,8 +154,8 @@ hwaddr_aton(unsigned char *buffer, const char *addr) 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;