From 860c077fc3b5afbe9e347a875621f2e2c5d1904d Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 1 Jun 2018 20:12:02 +0200 Subject: [PATCH] memcached plugin: fix implicit conversion warning 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memcached.c b/src/memcached.c index 11df999d..4ff70f7c 100644 --- 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; - int name_len = strlen(fields[1]); + size_t name_len = strlen(fields[1]); if (name_len == 0) continue; -- 2.11.0