formatting

pull/636/head
cronyx 2023-02-04 20:52:05 +03:00
parent 12af15dc57
commit 755b2c7d41
1 changed files with 7 additions and 8 deletions

View File

@ -239,18 +239,17 @@ int scan() {
free(seen_vec); free(seen_vec);
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[]) {
{
int opt; int opt;
while ((opt = getopt(argc, argv, "t:")) != -1) {
while ((opt = getopt(argc, argv, "t:")) != -1)
switch (opt) { switch (opt) {
case 't': case 't':
scansec = atoi(optarg); scansec = atoi(optarg);
break; break;
default: default:
printf("Usage: %s [-t scansec]\n", argv[0]); printf("Usage: %s [-t seconds]\n", argv[0]);
exit(EXIT_FAILURE);
}
} }
return scan(); return scan();
} }