Skip to content

Commit 3422581

Browse files
committed
reformat settings.cpp
1 parent 7cf7a8b commit 3422581

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

settings.cpp

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,26 @@ void process_args(int argc, char *argv[])
1818
{
1919
int i, j, k;
2020
int opt;
21-
static struct option long_options[] =
22-
{
21+
static struct option long_options[] = {
2322
{"port", required_argument, 0, 1},
2423
{"cpu", required_argument, 0, 1},
2524
{"loop", required_argument, 0, 1},
2625
{"io", required_argument, 0, 1},
2726
{"oc", required_argument, 0, 1},
2827
{"nor-read", required_argument, 0, 1},
2928
{"nor-write", required_argument, 0, 1},
30-
{"nc1020", no_argument, 0, 1},
31-
{"pc1000", no_argument, 0, 1},
32-
{"nc2000", no_argument, 0, 1},
33-
{"nc3000", no_argument, 0, 1},
34-
{"no-keepon", no_argument, 0, 1},
35-
{"no-sync", no_argument, 0, 1},
36-
{"no-sync-on-resume", no_argument, 0, 1},
37-
{"debug-beeper", no_argument, 0, 1},
38-
{"debug-dsp", no_argument, 0, 1},
39-
{"debug-timer", no_argument, 0, 1},
29+
{"nc1020", no_argument, 0, 1},
30+
{"pc1000", no_argument, 0, 1},
31+
{"nc2000", no_argument, 0, 1},
32+
{"nc3000", no_argument, 0, 1},
33+
{"no-keepon", no_argument, 0, 1},
34+
{"no-sync", no_argument, 0, 1},
35+
{"no-sync-on-resume", no_argument, 0, 1},
36+
{"debug-beeper", no_argument, 0, 1},
37+
{"debug-dsp", no_argument, 0, 1},
38+
{"debug-timer", no_argument, 0, 1},
4039
{"power-save", required_argument, 0, 1},
41-
{"rom", required_argument, 0, 1},
40+
{"rom", required_argument, 0, 1},
4241
{"pixel-size", required_argument, 0, 1},
4342
{"gap-size", required_argument, 0, 1},
4443
{"lcd-scale", required_argument, 0, 1},
@@ -48,21 +47,21 @@ void process_args(int argc, char *argv[])
4847
{"lcd-outer-refresh", required_argument, 0, 1},
4948
{"stripe", required_argument, 0, 1},
5049
{"timer01-speed", required_argument, 0, 1},
51-
{"load-state", no_argument, 0, 1},
52-
{"no-lcd-latency-effect", no_argument, 0, 1},
50+
{"load-state", no_argument, 0, 1},
51+
{"no-lcd-latency-effect", no_argument, 0, 1},
5352
{"state", required_argument, 0, 1},
54-
{"auto-save-state", no_argument, 0, 1},
55-
{"auto-save-all", no_argument, 0, 1},
56-
{"auto-save-flash", no_argument, 0, 1},
57-
{"cks", no_argument, 0, 1},
58-
{"debug-cks", no_argument, 0, 1},
59-
{"pro-keyboard", no_argument, 0, 1},
60-
{"no-nand-forced-erase", no_argument, 0, 1},
53+
{"auto-save-state", no_argument, 0, 1},
54+
{"auto-save-all", no_argument, 0, 1},
55+
{"auto-save-flash", no_argument, 0, 1},
56+
{"cks", no_argument, 0, 1},
57+
{"debug-cks", no_argument, 0, 1},
58+
{"pro-keyboard", no_argument, 0, 1},
59+
{"no-nand-forced-erase", no_argument, 0, 1},
6160
{"log-level", required_argument, 0, 1},
6261
{NULL, 0, 0, 0}
63-
};
64-
int option_index = 0;
65-
if (argc == 1)
62+
};
63+
int option_index = 0;
64+
if (argc == 1)
6665
{
6766
//printf("no argument provided\n");
6867
}

0 commit comments

Comments
 (0)