diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2018-07-30 09:56:51 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2018-07-30 09:56:51 +0000 |
commit | de3c442b9e48d9c6ebab5bf843c513553a6c1479 (patch) | |
tree | 8bf915caf0a029a9243058758bc667f03d79424c | |
parent | 04ea9f509c3e489a689b0daef6dc6d8e7c8b48ec (diff) |
replace exit() with return(), from Ross L Richardson.
ok tb@ (previous 3 commits to main.c as well)
-rw-r--r-- | usr.sbin/acme-client/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c index df1928edb8e..4bbc2506f4c 100644 --- a/usr.sbin/acme-client/main.c +++ b/usr.sbin/acme-client/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.39 2018/07/30 09:54:35 benno Exp $ */ +/* $Id: main.c,v 1.40 2018/07/30 09:56:50 benno Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -90,7 +90,7 @@ main(int argc, char *argv[]) /* parse config file */ if ((conf = parse_config(conffile, popts)) == NULL) - exit(EXIT_FAILURE); + return EXIT_FAILURE; argc -= optind; argv += optind; @@ -205,10 +205,10 @@ main(int argc, char *argv[]) } if (ne > 0) - exit(EXIT_FAILURE); + return EXIT_FAILURE; if (popts & ACME_OPT_CHECK) - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; /* Set the zeroth altname as our domain. */ altsz = domain->altname_count + 1; |