shuffle the code a bit to improve readability

This commit is contained in:
Omar Polo 2022-01-13 10:34:55 +00:00
parent febfcde82b
commit b3602923d0
1 changed files with 4 additions and 4 deletions

8
gg.c
View File

@ -411,18 +411,18 @@ main(int argc, char **argv)
usage();
}
signal(SIGPIPE, SIG_IGN);
if (argc != 1)
usage();
load_tls_conf();
signal(SIGPIPE, SIG_IGN);
#ifdef __OpenBSD__
if (pledge("stdio inet dns", NULL) == -1)
err(1, "pledge");
#endif
if (argc != 1)
usage();
code = get(*argv);
return code < 20 || code >= 30;