aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2022-09-19 22:38:55 +0200
committerThomas Voss <thomasvoss@live.com> 2022-09-19 22:38:55 +0200
commit97c37ebd708816e119fbabc18a23b9e5380d5071 (patch)
tree1a0e1676e6bd3ca0c2124ae77555007d36d798d8
parent4496ddff1f5d7a6f3844bf3601ae8674a39802f2 (diff)
Tabs > Spaces
-rw-r--r--main.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/main.c b/main.c
index 409a66a..304c925 100644
--- a/main.c
+++ b/main.c
@@ -31,14 +31,14 @@ static void usage(char *);
int
main(int argc, char **argv)
{
- int opt;
- struct luxdisp disp;
+ int opt;
+ struct luxdisp disp;
- luxinit(&disp);
+ luxinit(&disp);
if (argc == 1)
goto Gflag;
else while ((opt = getopt(argc, argv, ":d:D:gGi:I:s:S:")) != -1) {
- switch (opt) {
+ switch (opt) {
case 'g':;
int br;
if ((br = luxget(&disp)) == -1)
@@ -56,7 +56,7 @@ Gflag:;
if (luxdec(&disp, parseint(optarg)) == -1)
err(EXIT_FAILURE, "luxdec");
break;
- case 'i':
+ case 'i':
if (luxinc(&disp, parseint(optarg)) == -1)
err(EXIT_FAILURE, "luxinc");
break;
@@ -68,7 +68,7 @@ Gflag:;
if (luxdecp(&disp, parsedouble(optarg)) == -1)
err(EXIT_FAILURE, "luxdecp");
break;
- case 'I':
+ case 'I':
if (luxincp(&disp, parsedouble(optarg)) == -1)
err(EXIT_FAILURE, "luxincp");
break;
@@ -76,13 +76,13 @@ Gflag:;
if (luxsetp(&disp, parsedouble(optarg)) == -1)
err(EXIT_FAILURE, "luxsetp");
break;
- default:
- usage(argv[0]);
- }
- }
+ default:
+ usage(argv[0]);
+ }
+ }
- luxfree(&disp);
- return EXIT_SUCCESS;
+ luxfree(&disp);
+ return EXIT_SUCCESS;
}
int