diff options
| author | Karel Zak <kzak@redhat.com> | 2011-08-01 12:40:03 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2011-08-01 12:40:03 +0200 |
| commit | 6aace32f0b7512224d18780bcbfe473c958f317e (patch) | |
| tree | 38bc132608d3b10ade9ebca9c6e339918065efb7 /misc-utils/lsblk.c | |
| parent | c3bfedc3d79b69e5053a96bd17355364580ed4e4 (diff) | |
| download | util-linux-6aace32f0b7512224d18780bcbfe473c958f317e.tar.gz | |
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 50b3bcc158..4ab61133fa 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); |
