summaryrefslogtreecommitdiffstats
path: root/usb.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-21 18:03:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-21 18:03:32 +0000
commitd8b462341b5cee958671aaeb8718fc0b3c92a78f (patch)
tree3f332f43f775a0d7db6c83696afbd43c812e3bba /usb.c
parenta640519cc81cef348ff30195e50767f83e8b6d76 (diff)
downloadldetect-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.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/usb.c b/usb.c
index 2f5fa3a..4c6e8d0 100644
--- a/usb.c
+++ b/usb.c
@@ -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) {