lsblk: fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
c3bfedc3d7
commit
6aace32f0b
|
@ -139,8 +139,8 @@ struct lsblk *lsblk; /* global handler */
|
||||||
int columns[__NCOLUMNS];/* enabled columns */
|
int columns[__NCOLUMNS];/* enabled columns */
|
||||||
int ncolumns; /* number of enabled columns */
|
int ncolumns; /* number of enabled columns */
|
||||||
|
|
||||||
unsigned int excludes[256];
|
int excludes[256];
|
||||||
int nexcludes;
|
size_t nexcludes;
|
||||||
|
|
||||||
struct blkdev_cxt {
|
struct blkdev_cxt {
|
||||||
struct blkdev_cxt *parent;
|
struct blkdev_cxt *parent;
|
||||||
|
@ -173,7 +173,7 @@ struct blkdev_cxt {
|
||||||
|
|
||||||
static int is_maj_excluded(int maj)
|
static int is_maj_excluded(int maj)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
assert(ARRAY_SIZE(excludes) > nexcludes);
|
assert(ARRAY_SIZE(excludes) > nexcludes);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue