projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13e56d
)
onewire plugin: fix one more compiler warning
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 13 Mar 2016 11:46:31 +0000
(12:46 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 13 Mar 2016 11:46:31 +0000
(12:46 +0100)
comparison of integers of different signs: 'int' and 'unsigned long'
src/onewire.c
patch
|
blob
|
history
diff --git
a/src/onewire.c
b/src/onewire.c
index
3c3afdf
..
3c441ec
100644
(file)
--- a/
src/onewire.c
+++ b/
src/onewire.c
@@
-459,7
+459,7
@@
static int cow_read_bus (const char *path)
else
status = ssnprintf (subpath, sizeof (subpath), "%s/%s",
path, buffer_ptr);
- if ((status <= 0) || (status >= sizeof (subpath)))
+ if ((status <= 0) || (status >=
(int)
sizeof (subpath)))
continue;
for (i = 0; i < ow_family_features_num; i++)