diff options
author | Sami Kerola | 2012-06-16 23:34:30 +0200 |
---|---|---|
committer | Sami Kerola | 2012-06-17 18:00:00 +0200 |
commit | 13cf6fc8d92bf62c382cae0dd5b9c99ae9852588 (patch) | |
tree | 1c6299cf99b5fb6ee179a9110952907ecdeceff7 | |
parent | scriptreplay: fix compiler format warning (diff) | |
download | kernel-qcow2-util-linux-13cf6fc8d92bf62c382cae0dd5b9c99ae9852588.tar.gz kernel-qcow2-util-linux-13cf6fc8d92bf62c382cae0dd5b9c99ae9852588.tar.xz kernel-qcow2-util-linux-13cf6fc8d92bf62c382cae0dd5b9c99ae9852588.zip |
lscpu: values in /proc/bus/pci/devices are always unsigned
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-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 05a5fb43a..bfb1343cf 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -409,7 +409,7 @@ static int has_pci_device(int vendor, int device) { FILE *f; - int num, fn, ven, dev; + unsigned int num, fn, ven, dev; int res = 1; f = path_fopen("r", 0, _PATH_PROC_PCIDEVS); |