]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: fix compiler warning [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Tue, 19 Jun 2012 11:14:20 +0000 (13:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Jun 2012 11:14:20 +0000 (13:14 +0200)
lscpu.c: In function ‘has_pci_device’:
lscpu.c:425:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
lscpu.c:425:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c

index bfb1343cfeacbae58de86956c82daa2605a172e4..e48f59579d88aaae86ef4202f8843735fc3fb524 100644 (file)
@@ -406,7 +406,7 @@ read_basicinfo(struct lscpu_desc *desc, struct lscpu_modifier *mod)
 }
 
 static int
-has_pci_device(int vendor, int device)
+has_pci_device(unsigned int vendor, unsigned int device)
 {
        FILE *f;
        unsigned int num, fn, ven, dev;