]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: fix compiler warnings [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 10:40:03 +0000 (12:40 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 10:40:03 +0000 (12:40 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c

index 50b3bcc158050ac236d05b6a9f9a020dca61c61a..4ab61133fadc2cbd45a38ba496a2e398c6f2a272 100644 (file)
@@ -139,8 +139,8 @@ struct lsblk *lsblk;        /* global handler */
 int columns[__NCOLUMNS];/* enabled columns */
 int ncolumns;          /* number of enabled columns */
 
-unsigned int excludes[256];
-int nexcludes;
+int excludes[256];
+size_t nexcludes;
 
 struct blkdev_cxt {
        struct blkdev_cxt *parent;
@@ -173,7 +173,7 @@ struct blkdev_cxt {
 
 static int is_maj_excluded(int maj)
 {
-       int i;
+       size_t i;
 
        assert(ARRAY_SIZE(excludes) > nexcludes);