1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 21:17:31 +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)
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':
clk_only = 1;
break;
@ -717,6 +709,14 @@ int main(int argc, char **argv)
usage(*argv);
debounce = 1;
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':
tmp = strtoul(optarg, &end, 0);
if (*end)