summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d13e56d)
raw | patch | inline | side by side (parent: d13e56d)
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 3c3afdf69d80f9253ae738c33ccc8247a7538f3a..3c441ecb3493791d4d650b7667f3d355ccdf9109 100644 (file)
--- a/src/onewire.c
+++ b/src/onewire.c
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++)