diff options
author | Karel Zak | 2012-06-19 13:14:20 +0200 |
---|---|---|
committer | Karel Zak | 2012-06-19 13:14:20 +0200 |
commit | 140014a4246349b2a9af5996da9ef46efbb11e17 (patch) | |
tree | 10ed0a7b08f06c9c6ce12127283809e64770deba /sys-utils/lscpu.c | |
parent | Merge branch '2012wk24' of git://github.com/kerolasa/lelux-utiliteetit (diff) | |
download | kernel-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.c | 2 |
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; |