]>
Commit | Line | Data |
---|---|---|
72d80898 MT |
1 | Patch by Robert Scheck <redhat@linuxnetz.de> for pciutils >= 2.1.99, which make pciutils |
2 | rebuildable using gcc 4. | |
3 | ||
4 | --- pciutils-2.1.99-test8/lib/i386-ports.c 2004-08-13 22:13:11.000000000 +0200 | |
5 | +++ pciutils-2.1.99-test8/lib/i386-ports.c.gcc4 2005-03-14 09:30:06.000000000 +0100 | |
6 | @@ -57,9 +57,9 @@ | |
7 | for(d.dev = 0; d.dev < 32; d.dev++) | |
8 | { | |
9 | u16 class, vendor; | |
10 | - if (m->read(&d, PCI_CLASS_DEVICE, (byte *) &class, sizeof(class)) && | |
11 | + if ((m->read) (&d, PCI_CLASS_DEVICE, (byte *) &class, sizeof(class)) && | |
12 | (class == cpu_to_le16(PCI_CLASS_BRIDGE_HOST) || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA)) || | |
13 | - m->read(&d, PCI_VENDOR_ID, (byte *) &vendor, sizeof(vendor)) && | |
14 | + (m->read) (&d, PCI_VENDOR_ID, (byte *) &vendor, sizeof(vendor)) && | |
15 | (vendor == cpu_to_le16(PCI_VENDOR_ID_INTEL) || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ))) | |
16 | { | |
17 | a->debug("...outside the Asylum at 0/%02x/0", d.dev); |