mirror of https://github.com/omar-polo/gmid.git
shuffle the code a bit to improve readability
This commit is contained in:
parent
febfcde82b
commit
b3602923d0
8
gg.c
8
gg.c
|
@ -411,18 +411,18 @@ main(int argc, char **argv)
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
signal(SIGPIPE, SIG_IGN);
|
if (argc != 1)
|
||||||
|
usage();
|
||||||
|
|
||||||
load_tls_conf();
|
load_tls_conf();
|
||||||
|
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (pledge("stdio inet dns", NULL) == -1)
|
if (pledge("stdio inet dns", NULL) == -1)
|
||||||
err(1, "pledge");
|
err(1, "pledge");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argc != 1)
|
|
||||||
usage();
|
|
||||||
|
|
||||||
code = get(*argv);
|
code = get(*argv);
|
||||||
|
|
||||||
return code < 20 || code >= 30;
|
return code < 20 || code >= 30;
|
||||||
|
|
Loading…
Reference in New Issue