From: Ruben Kerkhof Date: Thu, 31 May 2018 14:08:55 +0000 (+0200) Subject: wireless plugin: fix implicit conversion warning X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=027571a0a8bb157bb3fae85e7bf000ff414cb5cf;p=collectd.git wireless plugin: fix implicit conversion warning CC src/wireless.lo src/wireless.c:106:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] len = strlen(fields[0]) - 1; ~ ~~~~~~~~~~~~~~~~~~^~~ 1 warning generated. --- diff --git a/src/wireless.c b/src/wireless.c index 31aba0a5..2e597f37 100644 --- a/src/wireless.c +++ b/src/wireless.c @@ -86,7 +86,7 @@ static int wireless_read(void) { int numfields; int devices_found; - int len; + size_t len; /* there are a variety of names for the wireless device */ if ((fh = fopen(WIRELESS_PROC_FILE, "r")) == NULL) {