summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-17 10:08:48 +0000
committerRoy Marples <roy@marples.name>2008-04-17 10:08:48 +0000
commitcbfa778bd60d03b511d8c7639dd78f59ec42f471 (patch)
tree4aa04cfb1802e753e360b615cb5fe56225fdf8d8 /net.c
parentf2cfcde87ea8d58a44fd67cf060bdc234f900304 (diff)
downloaddhcpcd-cbfa778bd60d03b511d8c7639dd78f59ec42f471.tar.xz
Specify char
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
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;