summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorKarel Zak2012-07-26 09:41:57 +0200
committerKarel Zak2012-07-26 09:41:57 +0200
commitbd2d882209f816d07ed03e19e9e8dc13a9832071 (patch)
tree441c2fd38494ad099ef72757d2aaf1d1f9cd8bed /libblkid
parentinclude/optutils: remove unnecessary exclusive_option() (diff)
downloadkernel-qcow2-util-linux-bd2d882209f816d07ed03e19e9e8dc13a9832071.tar.gz
kernel-qcow2-util-linux-bd2d882209f816d07ed03e19e9e8dc13a9832071.tar.xz
kernel-qcow2-util-linux-bd2d882209f816d07ed03e19e9e8dc13a9832071.zip
libblkid: fix compiler warning [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c
index 7c1a020fc..467b1fda8 100644
--- a/libblkid/src/probe.c
+++ b/libblkid/src/probe.c
@@ -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;
}