1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-04 22:53:08 +02:00

ubb-patgen/ubb-patgen.c (main): sort options alphabetically in "switch" statement

This commit is contained in:
Werner Almesberger 2013-01-16 03:45:22 -03:00
parent 2161341267
commit 6d749fafb8

View File

@ -695,14 +695,6 @@ int main(int argc, char **argv)
while ((c = getopt(argc, argv, "cCd:f:i:m:pqt:w:")) != EOF) while ((c = getopt(argc, argv, "cCd:f:i:m:pqt:w:")) != EOF)
switch (c) { switch (c) {
case 'f':
if (!frequency(optarg, &bus_hz, &bus_rel))
usage(*argv);
break;
case 'i':
if (!interval(optarg, &bus_hz, &bus_rel))
usage(*argv);
break;
case 'c': case 'c':
clk_only = 1; clk_only = 1;
break; break;
@ -717,6 +709,14 @@ int main(int argc, char **argv)
usage(*argv); usage(*argv);
debounce = 1; debounce = 1;
break; break;
case 'f':
if (!frequency(optarg, &bus_hz, &bus_rel))
usage(*argv);
break;
case 'i':
if (!interval(optarg, &bus_hz, &bus_rel))
usage(*argv);
break;
case 'm': case 'm':
tmp = strtoul(optarg, &end, 0); tmp = strtoul(optarg, &end, 0);
if (*end) if (*end)