diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-08-20 00:23:58 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-08-20 00:23:58 +0000 |
commit | e32553e51ff5c0b8be8fb561f587941e753ef4b5 (patch) | |
tree | 798f37a4e1abd47d3863017c9f4f660d9f16cc46 /lspcidrake.c | |
parent | 56d15b241c13670336fe794847335414c2345df5 (diff) | |
download | ldetect-e32553e51ff5c0b8be8fb561f587941e753ef4b5.tar ldetect-e32553e51ff5c0b8be8fb561f587941e753ef4b5.tar.gz ldetect-e32553e51ff5c0b8be8fb561f587941e753ef4b5.tar.bz2 ldetect-e32553e51ff5c0b8be8fb561f587941e753ef4b5.tar.xz ldetect-e32553e51ff5c0b8be8fb561f587941e753ef4b5.zip |
fix argument testing
Diffstat (limited to 'lspcidrake.c')
-rw-r--r-- | lspcidrake.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lspcidrake.c b/lspcidrake.c index e2620c2..0f91906 100644 --- a/lspcidrake.c +++ b/lspcidrake.c @@ -45,12 +45,10 @@ int main(int argc, char **argv) { } if (!strcmp(*ptr, "-v")) verboze = 1; - if (!strcmp(*ptr, "-u")) { - proc_usb_path = *++ptr; - continue; - } - if (!strcmp(*ptr, "-p")) - proc_pci_path = *++ptr; + else if (!strcmp(*ptr, "-u")) + proc_usb_path = *++ptr; + else if (!strcmp(*ptr, "-p")) + proc_pci_path = *++ptr; ptr++; } |