]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix compiler warning [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 07:41:57 +0000 (09:41 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 07:41:57 +0000 (09:41 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c

index 7c1a020fc1d911c66f90ef8ca0cc2221c8eef27b..467b1fda85a02d05672d60ed59ef2d8f5f491a23 100644 (file)
@@ -1219,7 +1219,7 @@ int blkid_probe_vsprintf_value(blkid_probe pr, const char *name,
 
        len = vsnprintf((char *) v->data, sizeof(v->data), fmt, ap);
 
-       if (len <= 0 || len >= sizeof(v->data)) {
+       if (len <= 0 || (size_t) len >= sizeof(v->data)) {
                blkid_probe_reset_last_value(pr);
                return -1;
        }