Blob Blame History Raw
diff -up pciutils-3.1.0/lib/i386-ports.c.glibcmacros pciutils-3.1.0/lib/i386-ports.c
--- pciutils-3.1.0/lib/i386-ports.c.glibcmacros	2008-11-21 22:00:38.000000000 +0100
+++ pciutils-3.1.0/lib/i386-ports.c	2009-01-20 10:43:04.766937947 +0100
@@ -72,9 +72,9 @@ intel_sanity_check(struct pci_access *a,
   for (d.dev = 0; d.dev < 32; d.dev++)
     {
       u16 class, vendor;
-      if (m->read(&d, PCI_CLASS_DEVICE, (byte *) &class, sizeof(class)) &&
+      if ((m->read) (&d, PCI_CLASS_DEVICE, (byte *) &class, sizeof(class)) &&
 	  (class == cpu_to_le16(PCI_CLASS_BRIDGE_HOST) || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA)) ||
-	  m->read(&d, PCI_VENDOR_ID, (byte *) &vendor, sizeof(vendor)) &&
+	  (m->read) (&d, PCI_VENDOR_ID, (byte *) &vendor, sizeof(vendor)) &&
 	  (vendor == cpu_to_le16(PCI_VENDOR_ID_INTEL) || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ)))
 	{
 	  a->debug("...outside the Asylum at 0/%02x/0", d.dev);