diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-03-21 18:03:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-03-21 18:03:32 +0000 |
commit | d8b462341b5cee958671aaeb8718fc0b3c92a78f (patch) | |
tree | 3f332f43f775a0d7db6c83696afbd43c812e3bba /usb.c | |
parent | a640519cc81cef348ff30195e50767f83e8b6d76 (diff) | |
download | ldetect-d8b462341b5cee958671aaeb8718fc0b3c92a78f.tar ldetect-d8b462341b5cee958671aaeb8718fc0b3c92a78f.tar.gz ldetect-d8b462341b5cee958671aaeb8718fc0b3c92a78f.tar.bz2 ldetect-d8b462341b5cee958671aaeb8718fc0b3c92a78f.tar.xz ldetect-d8b462341b5cee958671aaeb8718fc0b3c92a78f.zip |
if subid can be useful, use them. use probe_type==-1 to ensure no subid is used
Diffstat (limited to 'usb.c')
-rw-r--r-- | usb.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -5,15 +5,8 @@ #include "libldetect-private.h" #include "common.h" -static void usb_find_modules(struct pciusb_entries entries) { - char *share_path = getenv("SHARE_PATH"); - char *usbtable; - - if (!share_path || !*share_path) share_path = "/usr/share"; - usbtable = alloca(strlen(share_path) + 32); /* enough for /ldetect-lst/pcitable and EOS */ - sprintf(usbtable, "%s/ldetect-lst/usbtable", share_path); - - pciusb_find_modules(entries, usbtable); +static int usb_find_modules(struct pciusb_entries entries) { + return pciusb_find_modules(entries, "usbtable", 1 /* no_subid */); } extern struct pciusb_entries usb_probe(void) { |