aboutsummaryrefslogtreecommitdiff
path: root/gg.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-13 10:34:55 +0000
committerOmar Polo <op@omarpolo.com>2022-01-13 10:34:55 +0000
commitb3602923d04e7f1e2c909a776ec207b0e4fd8de8 (patch)
tree9bea7b641f80e74200bd2dfbfd5baba070ccb548 /gg.c
parentfebfcde82b97fed90c08ff36a89c7616b59cef23 (diff)
shuffle the code a bit to improve readability
Diffstat (limited to 'gg.c')
-rw-r--r--gg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gg.c b/gg.c
index e25e9cc..b70fd63 100644
--- a/gg.c
+++ b/gg.c
@@ -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;