From a7313564717fc12796b268eb50ea576dba3f257f Mon Sep 17 00:00:00 2001 From: benno Date: Mon, 30 Jul 2018 09:56:50 +0000 Subject: [PATCH] replace exit() with return(), from Ross L Richardson. ok tb@ (previous 3 commits to main.c as well) --- usr.sbin/acme-client/main.c | 8 ++++---- 1 file 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 * @@ -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; -- 2.20.1