From: Ruben Kerkhof Date: Sun, 13 Mar 2016 11:46:31 +0000 (+0100) Subject: onewire plugin: fix one more compiler warning X-Git-Tag: collectd-5.6.0~385 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8af7233531466226376d8da4b9e850b5f36593a;p=collectd.git onewire plugin: fix one more compiler warning comparison of integers of different signs: 'int' and 'unsigned long' --- diff --git a/src/onewire.c b/src/onewire.c index 3c3afdf6..3c441ecb 100644 --- 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++)