From: benno Date: Mon, 30 Jul 2018 09:56:50 +0000 (+0000) Subject: replace exit() with return(), from Ross L Richardson. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a7313564717fc12796b268eb50ea576dba3f257f;p=openbsd replace exit() with return(), from Ross L Richardson. ok tb@ (previous 3 commits to main.c as well) --- 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 * @@ -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;