summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-29 15:00:42 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-29 15:00:42 +0000
commit1ba53b45c2a9c1897a68fe14754eb1cd4865dbca (patch)
tree000fdc8cfe14c39a26fe9dea534af5a9259a1642
parent2c7fdee8596ea004f66d39564aad3d421c00e030 (diff)
downloadldetect-1ba53b45c2a9c1897a68fe14754eb1cd4865dbca.tar
ldetect-1ba53b45c2a9c1897a68fe14754eb1cd4865dbca.tar.gz
ldetect-1ba53b45c2a9c1897a68fe14754eb1cd4865dbca.tar.bz2
ldetect-1ba53b45c2a9c1897a68fe14754eb1cd4865dbca.tar.xz
ldetect-1ba53b45c2a9c1897a68fe14754eb1cd4865dbca.zip
fix bus type (and segfault on x86_64)
-rw-r--r--pciusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pciusb.c b/pciusb.c
index 7936eb6..5b76a7f 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -216,7 +216,7 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu
fh_close(&f);
/* If no special case in pcitable, then lookup modalias for devices */
- int bus = is_pci ? "pci" : "usb";
+ const char *bus = is_pci ? "pci" : "usb";
find_modules_through_aliases(bus, entries);
return 1;