rem: if (!strcmp(*ptr, "-u")) { proc_usb_path = *++ptr; continue; } if (!strcmp(*ptr, "-p")) proc_pci_path = *++ptr;
add: else if (!strcmp(*ptr, "-u")) proc_usb_path = *++ptr; else if (!strcmp(*ptr, "-p")) proc_pci_path = *++ptr;
context: int main(int argc, char **argv) {	char ** ptr = argv;	while (ptr && *ptr) {		if (!strcmp(*ptr, "-h") || !strcmp(*ptr, "--help")) {			printf("usage: lspcidrake [-v|-u]\n"				"-f : full probe [aka look for pci subids & class]\n"				"-p <file>: pci devices source [/proc/bus/pci/devices by default]\n"				"-u <file>: usb devices source [/proc/bus/usb/devices by default]\n"				"-v : verbose mode [print ids and sub-ids], implies full probe\n"				);				return 0;			}		if (!strcmp(*ptr, "-v"))			verboze = 1;		if (!strcmp(*ptr, "-u")) {			proc_usb_path = *++ptr;			continue;		}		if (!strcmp(*ptr, "-p"))			proc_pci_path = *++ptr;		ptr++;	}	printit(pci_probe(), pci_class2text);	printit(usb_probe(), usb_class2text);	return 0;}