summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--pci.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6085ca4..24fd2c3 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ build: $(binaries) $(libraries)
lspcidrake: lspcidrake.c libldetect.so
$(lib_major).$(LIB_MINOR): $(lib_objs)
- $(CC) -shared -z relro -Wl,-O1,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz
+ $(CC) -shared -Wl,-z,relro -Wl,-O1,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz
$(lib_major): $(lib_major).$(LIB_MINOR)
ln -sf $< $@
libldetect.so: $(lib_major)
diff --git a/pci.c b/pci.c
index d9f516a..6ed016b 100644
--- a/pci.c
+++ b/pci.c
@@ -40,8 +40,7 @@ extern struct pciusb_entries pci_probe(void) {
pacc = pci_alloc();
if (proc_pci_path) {
- pacc->method_params[PCI_ACCESS_PROC_BUS_PCI] = proc_pci_path;
- pacc->method = PCI_ACCESS_PROC_BUS_PCI;
+ pci_set_param(pacc, "proc.path", proc_pci_path);
}