X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=example.c;h=7780e55ba461a0bb55ddf444c452b5c8c98cffb8;hb=5f22f791384651789963ae20ef0b4332f5acc7fc;hp=9b24951472f18eee2634d0ac82481adebbee1c8b;hpb=91d4213f1745507d0802bc54de0e9f2c5345f066;p=pciutils.git diff --git a/example.c b/example.c index 9b24951..7780e55 100644 --- a/example.c +++ b/example.c @@ -20,7 +20,7 @@ int main(void) /* Set all options you want -- here we stick with the defaults */ pci_init(pacc); /* Initialize the PCI library */ pci_scan_bus(pacc); /* We want to get the list of devices */ - for(dev=pacc->devices; dev; dev=dev->next) /* Iterate over all devices */ + for (dev=pacc->devices; dev; dev=dev->next) /* Iterate over all devices */ { pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS); /* Fill in header info we need */ c = pci_read_byte(dev, PCI_INTERRUPT_PIN); /* Read config register directly */