summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorKarel Zak2012-06-19 13:14:20 +0200
committerKarel Zak2012-06-19 13:14:20 +0200
commit140014a4246349b2a9af5996da9ef46efbb11e17 (patch)
tree10ed0a7b08f06c9c6ce12127283809e64770deba /sys-utils/lscpu.c
parentMerge branch '2012wk24' of git://github.com/kerolasa/lelux-utiliteetit (diff)
downloadkernel-qcow2-util-linux-140014a4246349b2a9af5996da9ef46efbb11e17.tar.gz
kernel-qcow2-util-linux-140014a4246349b2a9af5996da9ef46efbb11e17.tar.xz
kernel-qcow2-util-linux-140014a4246349b2a9af5996da9ef46efbb11e17.zip
lscpu: fix compiler warning [-Wsign-compare]
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>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r--sys-utils/lscpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index bfb1343cf..e48f59579 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -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;