diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-27 16:11:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-27 16:11:15 +0000 |
commit | 687c1d1454898339b5cf00654359a326089ffccd (patch) | |
tree | 72143e9b83b86f114c528186f071711bc86cf205 /pciusb.c | |
parent | 606fb4b58d31c17c91eb2eb57c7eda76fd1f86a1 (diff) | |
download | ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar.gz ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar.bz2 ldetect-687c1d1454898339b5cf00654359a326089ffccd.tar.xz ldetect-687c1d1454898339b5cf00654359a326089ffccd.zip |
allow to modify the fh type more easily by adding more wrappers
Diffstat (limited to 'pciusb.c')
-rw-r--r-- | pciusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -109,7 +109,7 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu f = fh_open(fpciusbtable); - for (line = 1; fh_gets(buf, sizeof(buf) - 1, f); line++) { + for (line = 1; fh_gets(buf, sizeof(buf) - 1, &f); line++) { unsigned short vendor, device, subvendor, subdevice; char *p = NULL, *q = NULL; int offset; unsigned int i; @@ -156,7 +156,7 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu e->already_found = 1; } } - fh_close(f); + fh_close(&f); /* If no special case in pcitable, then lookup modalias for PCI devices (USB are already done by kernel) |