Fix build error due to decl after case

Fixes the following error:

    ../main.c:267:4: error: expected expression
                            char *end = NULL;
                            ^
This commit is contained in:
Simon Ser 2023-01-28 23:16:19 +01:00
parent 03f80d8c6b
commit 4ad19de7ce

2
main.c
View file

@ -263,7 +263,7 @@ int main(int argc, char *argv[]) {
} }
switch (opt) { switch (opt) {
case 'd': case 'd':;
char *end = NULL; char *end = NULL;
errno = 0; errno = 0;
delay_sec = strtod(optarg, &end); delay_sec = strtod(optarg, &end);