canfdtest: main(): sort switch/case in cmd line parser alphabetically

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/293/head
Marc Kleine-Budde 2021-05-04 12:00:39 +02:00
parent 4b94546cf9
commit fd6829eb4f
1 changed files with 8 additions and 7 deletions

View File

@ -376,21 +376,22 @@ int main(int argc, char *argv[])
while ((opt = getopt(argc, argv, "f:gl:v?")) != -1) { while ((opt = getopt(argc, argv, "f:gl:v?")) != -1) {
switch (opt) { switch (opt) {
case 'v':
verbose++;
break;
case 'f': case 'f':
inflight_count = atoi(optarg); inflight_count = atoi(optarg);
break; break;
case 'l':
test_loops = atoi(optarg);
break;
case 'g': case 'g':
echo_gen = 1; echo_gen = 1;
break; break;
case 'l':
test_loops = atoi(optarg);
break;
case 'v':
verbose++;
break;
case '?': case '?':
default: default:
print_usage(basename(argv[0])); print_usage(basename(argv[0]));