]> mj.ucw.cz Git - pciutils.git/commit
Clean up types
authorMartin Mares <mj@ucw.cz>
Fri, 26 Dec 2003 22:52:21 +0000 (22:52 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:11 +0000 (14:18 +0200)
commit9739916e9827883e27c82beabac1586fef01543a
tree267c31d433b2265fffa6d57cfb14791d7a2d8da8
parent80459c650b9739e06a8662e395a27ac481e2de3a
Clean up types

* lib/header.h (PCI_*_MASK): Cast to pciaddr_t explicitly.

* lib/pci.h: Types declared in <sys/types.h> should be usable on all
platforms we currently support, so kill the forest of #ifdef's and
use them in all cases.

* lib/pci.h: Use ULONG_MASK to decide whether we should use long
or long long to represent a 64-bit address. Killed HAVE_LONG_ADDRESS.
Define format strings for addresses, port numbers and IRQ numbers
directly in pci.h.

* lib/proc.c (proc_scan): Use PCIADDR_T_FMT for scanf'ing addresses.
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-17
ChangeLog
lib/configure
lib/header.h
lib/pci.h
lib/proc.c
lspci.c