diff options
author | 2018-07-30 09:56:50 +0000 | |
---|---|---|
committer | 2018-07-30 09:56:50 +0000 | |
commit | a7313564717fc12796b268eb50ea576dba3f257f (patch) | |
tree | 93f11cb2c8ed05aeb8b0e73a6cf72e480c9a43f8 | |
parent | replace warn() + exit() with err() (diff) | |
download | wireguard-openbsd-a7313564717fc12796b268eb50ea576dba3f257f.tar.xz wireguard-openbsd-a7313564717fc12796b268eb50ea576dba3f257f.zip |
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; |