summaryrefslogtreecommitdiffstats
path: root/pci.c
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-08-29 12:17:01 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-08-29 12:17:01 +0000
commit5c45fe3c13ff42ccb715733a4b1fc31891faf6d7 (patch)
treec3055c582b70b4ef460a8c42478f05662ebdf01e /pci.c
parent2cad6b607345dc81e94b41056aee840f943dfee4 (diff)
downloadldetect-5c45fe3c13ff42ccb715733a4b1fc31891faf6d7.tar
ldetect-5c45fe3c13ff42ccb715733a4b1fc31891faf6d7.tar.gz
ldetect-5c45fe3c13ff42ccb715733a4b1fc31891faf6d7.tar.bz2
ldetect-5c45fe3c13ff42ccb715733a4b1fc31891faf6d7.tar.xz
ldetect-5c45fe3c13ff42ccb715733a4b1fc31891faf6d7.zip
fix PCI_CLASS_PROG offset
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pci.c b/pci.c
index 662caf8..a2f86fb 100644
--- a/pci.c
+++ b/pci.c
@@ -57,7 +57,7 @@ extern struct pciusb_entries pci_probe(int probe_type) {
e->subvendor = 0xffff;
e->subdevice = 0xffff;
}
- class_prog = bufi[0x9];
+ class_prog = buf[0x9];
if (e->class_ == PCI_CLASS_SERIAL_USB) /* taken from kudzu's pci.c */
e->module = strdup(class_prog == 0 ? "usb-uhci" : "usb-ohci");
fclose(devf);