summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db45760)
raw | patch | inline | side by side (parent: db45760)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 12 Dec 2015 14:32:23 +0000 (15:32 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 12 Dec 2015 14:32:23 +0000 (15:32 +0100) |
Making all in daemon
CC redis_la-redis.lo
redis.c: In function 'redis_handle_info':
redis.c:307:5: error: array subscript has type 'char' [-Werror=char-subscripts]
for(i=0;(*str && (isdigit(*str) || *str == '.'));i++,str++)
^
cc1: all warnings being treated as errors
*** Error code 1
Stop.
make[3]: stopped in /home/ruben/src/collectd/src
*** Error code 1
Stop.
make[2]: stopped in /home/ruben/src/collectd/src
*** Error code 1
Stop.
make[1]: stopped in /home/ruben/src/collectd/src
*** Error code 1
Stop.
make: stopped in /home/ruben/src/collectd
CC redis_la-redis.lo
redis.c: In function 'redis_handle_info':
redis.c:307:5: error: array subscript has type 'char' [-Werror=char-subscripts]
for(i=0;(*str && (isdigit(*str) || *str == '.'));i++,str++)
^
cc1: all warnings being treated as errors
*** Error code 1
Stop.
make[3]: stopped in /home/ruben/src/collectd/src
*** Error code 1
Stop.
make[2]: stopped in /home/ruben/src/collectd/src
*** Error code 1
Stop.
make[1]: stopped in /home/ruben/src/collectd/src
*** Error code 1
Stop.
make: stopped in /home/ruben/src/collectd
src/redis.c | patch | blob | history |
diff --git a/src/redis.c b/src/redis.c
index a40d2cd2b48b9f0880f61f61a2177b6a476e1a22..9282e1938a3263601ad674e7f3dcad45f75be544 100644 (file)
--- a/src/redis.c
+++ b/src/redis.c
@@ -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';