summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b1f0d4)
raw | patch | inline | side by side (parent: 3b1f0d4)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 12 Mar 2016 16:30:58 +0000 (17:30 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 12 Mar 2016 16:30:58 +0000 (17:30 +0100) |
onewire.c:418:31: warning: comparison of integers of different signs:
'int' and 'unsigned long' [-Wsign-compare]
if ((status > 0) && (status < sizeof (subpath)))
~~~~~~ ^ ~~~~~~~~~~~~~~~~
onewire.c:422:31: warning: comparison of integers of different signs:
'int' and 'unsigned long' [-Wsign-compare]
if ((status > 0) && (status < sizeof (subpath)))
~~~~~~ ^ ~~~~~~~~~~~~~~~~
'int' and 'unsigned long' [-Wsign-compare]
if ((status > 0) && (status < sizeof (subpath)))
~~~~~~ ^ ~~~~~~~~~~~~~~~~
onewire.c:422:31: warning: comparison of integers of different signs:
'int' and 'unsigned long' [-Wsign-compare]
if ((status > 0) && (status < sizeof (subpath)))
~~~~~~ ^ ~~~~~~~~~~~~~~~~
src/onewire.c | patch | blob | history |
diff --git a/src/onewire.c b/src/onewire.c
index 58c35e1eb83be009b342fbfbb7af8f2a7642cb2b..3c3afdf69d80f9253ae738c33ccc8247a7538f3a 100644 (file)
--- a/src/onewire.c
+++ b/src/onewire.c
int status;
status = ssnprintf (subpath, sizeof (subpath), "%s/main", path);
- if ((status > 0) && (status < sizeof (subpath)))
+ if ((status > 0) && (status < (int) sizeof (subpath)))
cow_read_bus (subpath);
status = ssnprintf (subpath, sizeof (subpath), "%s/aux", path);
- if ((status > 0) && (status < sizeof (subpath)))
+ if ((status > 0) && (status < (int) sizeof (subpath)))
cow_read_bus (subpath);
return (0);