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

index 738b0865109be98642153b3d20fa1cd04a0d80ca..50daf3c4c587b46b4d998619cb13820deef965c0 100644 (file)
@@ -180,7 +180,7 @@ static const char *colnames[] =
 
 static int column_name_to_id(const char *name, size_t namesz)
 {
-       int i;
+       size_t i;
 
        for (i = 0; i < ARRAY_SIZE(colnames); i++) {
                const char *cn = colnames[i];