diff options
author | Karel Zak | 2011-08-01 12:40:03 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-01 12:40:03 +0200 |
commit | 6aace32f0b7512224d18780bcbfe473c958f317e (patch) | |
tree | 38bc132608d3b10ade9ebca9c6e339918065efb7 /misc-utils/lsblk.c | |
parent | uuidd: fix compiler warnings [-Wsign-compare] (diff) | |
download | kernel-qcow2-util-linux-6aace32f0b7512224d18780bcbfe473c958f317e.tar.gz kernel-qcow2-util-linux-6aace32f0b7512224d18780bcbfe473c958f317e.tar.xz kernel-qcow2-util-linux-6aace32f0b7512224d18780bcbfe473c958f317e.zip |
lsblk: fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.c')
-rw-r--r-- | misc-utils/lsblk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 50b3bcc15..4ab61133f 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -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); |