lsblk: fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2011-08-01 12:40:03 +02:00
parent c3bfedc3d7
commit 6aace32f0b
1 changed files with 3 additions and 3 deletions

View 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);