From 97c37ebd708816e119fbabc18a23b9e5380d5071 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 19 Sep 2022 22:38:55 +0200 Subject: Tabs > Spaces --- main.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'main.c') 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 -- cgit v1.2.3