projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11a4bca
)
memcached plugin: fix implicit conversion warning
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 1 Jun 2018 18:12:02 +0000
(20:12 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 1 Jun 2018 18:12:02 +0000
(20:12 +0200)
CC src/memcached.lo
src/memcached.c:478:20: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int name_len = strlen(fields[1]);
~~~~~~~~ ^~~~~~~~~~~~~~~~~
1 warning generated.
src/memcached.c
patch
|
blob
|
history
diff --git
a/src/memcached.c
b/src/memcached.c
index
11df999
..
4ff70f7
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-475,7
+475,7
@@
static int memcached_read(user_data_t *user_data) {
if (strsplit(line, fields, 3) != 3)
continue;
-
in
t name_len = strlen(fields[1]);
+
size_
t name_len = strlen(fields[1]);
if (name_len == 0)
continue;