summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-17 09:57:19 +0000
committerRoy Marples <roy@marples.name>2008-04-17 09:57:19 +0000
commitf2cfcde87ea8d58a44fd67cf060bdc234f900304 (patch)
tree7221e0efbbc1ac3ca85d56634770d9c9fc3a3761 /net.c
parent574011fc89d07bd35b8e9d744030d41c71151676 (diff)
downloaddhcpcd-f2cfcde87ea8d58a44fd67cf060bdc234f900304.tar.xz
Our ctype calls should always use unsigned.
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.c b/net.c
index 2c122856..e692b49b 100644
--- a/net.c
+++ b/net.c
@@ -154,7 +154,9 @@ hwaddr_aton(unsigned char *buffer, const char *addr)
return 0;
}
/* Ensure that digits are hex */
- if (isxdigit ((int)c[0]) == 0 || isxdigit((int)c[1]) == 0) {
+ if (isxdigit((unsigned)c[0]) == 0 ||
+ isxdigit((unsigned)c[1]) == 0)
+ {
errno = EINVAL;
return 0;
}