summaryrefslogtreecommitdiffstats
path: root/lspcidrake.c
diff options
context:
space:
mode:
Diffstat (limited to 'lspcidrake.c')
-rw-r--r--lspcidrake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lspcidrake.c b/lspcidrake.c
index a050359..72b6a44 100644
--- a/lspcidrake.c
+++ b/lspcidrake.c
@@ -4,7 +4,6 @@
static int verboze = 0;
-
typedef const char *(f_t)(unsigned long );
static void printit(struct pciusb_entries *entries, f_t find_class) {
@@ -33,6 +32,7 @@ static void printit(struct pciusb_entries *entries, f_t find_class) {
int main(int argc, char **argv) {
char ** ptr = argv;
int full_probe = 0;
+ struct pciusb_entries entries;
while (ptr && *ptr) {
if (!strcmp(*ptr, "-h") || !strcmp(*ptr, "--help")) {
@@ -48,7 +48,7 @@ int main(int argc, char **argv) {
ptr++;
}
- struct pciusb_entries entries = pci_probe(full_probe);
+ entries = pci_probe(full_probe);
printit(&entries, pci_class2text);
pciusb_free(&entries);