projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec93698
)
wireless plugin: fix implicit conversion warning
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 31 May 2018 14:08:55 +0000
(16:08 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 31 May 2018 14:08:55 +0000
(16:08 +0200)
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.
src/wireless.c
patch
|
blob
|
history
diff --git
a/src/wireless.c
b/src/wireless.c
index
31aba0a
..
2e597f3
100644
(file)
--- a/
src/wireless.c
+++ b/
src/wireless.c
@@
-86,7
+86,7
@@
static int wireless_read(void) {
int numfields;
int devices_found;
-
in
t len;
+
size_
t len;
/* there are a variety of names for the wireless device */
if ((fh = fopen(WIRELESS_PROC_FILE, "r")) == NULL) {