diff options
| author | Roy Marples <roy@marples.name> | 2008-04-17 09:57:19 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-04-17 09:57:19 +0000 |
| commit | f2cfcde87ea8d58a44fd67cf060bdc234f900304 (patch) | |
| tree | 7221e0efbbc1ac3ca85d56634770d9c9fc3a3761 /net.c | |
| parent | 574011fc89d07bd35b8e9d744030d41c71151676 (diff) | |
| download | dhcpcd-f2cfcde87ea8d58a44fd67cf060bdc234f900304.tar.xz | |
Our ctype calls should always use unsigned.
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |
