diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-09 21:28:09 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-09 21:28:09 +0000 |
commit | b31cc7f69bc28a7cc497f38da511ab512d885c8d (patch) | |
tree | 91817d11e5e0c14e05db21e5f75a1ab273da9d02 | |
parent | 141f0a6947a689e5b91e6bb658c19a2662205fa5 (diff) | |
download | ldetect-b31cc7f69bc28a7cc497f38da511ab512d885c8d.tar ldetect-b31cc7f69bc28a7cc497f38da511ab512d885c8d.tar.gz ldetect-b31cc7f69bc28a7cc497f38da511ab512d885c8d.tar.bz2 ldetect-b31cc7f69bc28a7cc497f38da511ab512d885c8d.tar.xz ldetect-b31cc7f69bc28a7cc497f38da511ab512d885c8d.zip |
fix for "gcc-2.95.3 don't compile" (reported by Ian White)
-rw-r--r-- | lspcidrake.c | 4 |
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); |