aboutsummaryrefslogtreecommitdiff
path: root/src/libndb/ipattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libndb/ipattr.c')
-rw-r--r--src/libndb/ipattr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libndb/ipattr.c b/src/libndb/ipattr.c
index d23d5ee0..70f3873c 100644
--- a/src/libndb/ipattr.c
+++ b/src/libndb/ipattr.c
@@ -15,11 +15,11 @@ ipattr(char *name)
for(p = name; *p; p++){
c = *p;
- if(isdigit(c))
+ if(isdigit((uchar)c))
continue;
- if(isxdigit(c))
+ if(isxdigit((uchar)c))
hex = 1;
- else if(isalpha(c) || c == '-')
+ else if(isalpha((uchar)c) || c == '-')
alpha = 1;
else if(c == '.')
dot = 1;