Merge pull request #1463 from rubenk/redis-fix-build-warning
authorRuben Kerkhof <ruben@tilaa.nl>
Sun, 13 Dec 2015 11:36:53 +0000 (12:36 +0100)
committerRuben Kerkhof <ruben@tilaa.nl>
Sun, 13 Dec 2015 11:36:53 +0000 (12:36 +0100)
redis plugin: fix build error on NetBSD

src/redis.c

index a40d2cd..9282e19 100644 (file)
@@ -304,7 +304,7 @@ int redis_handle_info (char *node, char const *info_line, char const *type, char
     int i;
 
     str += strlen (field_name) + 1; /* also skip the ':' */
-    for(i=0;(*str && (isdigit(*str) || *str == '.'));i++,str++)
+    for(i=0;(*str && (isdigit((unsigned char)*str) || *str == '.'));i++,str++)
       buf[i] = *str;
     buf[i] ='\0';