diff options
author | Omar Polo <op@omarpolo.com> | 2022-01-13 10:34:55 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-01-13 10:34:55 +0000 |
commit | b3602923d04e7f1e2c909a776ec207b0e4fd8de8 (patch) | |
tree | 9bea7b641f80e74200bd2dfbfd5baba070ccb548 /gg.c | |
parent | febfcde82b97fed90c08ff36a89c7616b59cef23 (diff) |
shuffle the code a bit to improve readability
Diffstat (limited to 'gg.c')
-rw-r--r-- | gg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |