From 30f3541452861b4a67815da6ffc49b68b55951c9 Mon Sep 17 00:00:00 2001 From: benno Date: Mon, 30 Jul 2018 09:54:35 +0000 Subject: [PATCH] replace warn() + exit() with err() From Ross L Richardson. --- usr.sbin/acme-client/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c index 57742037771..df1928edb8e 100644 --- a/usr.sbin/acme-client/main.c +++ b/usr.sbin/acme-client/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.38 2018/07/30 09:53:14 benno Exp $ */ +/* $Id: main.c,v 1.39 2018/07/30 09:54:35 benno Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -405,10 +405,8 @@ main(int argc, char *argv[]) /* Jail: sandbox, file-system, user. */ - if (pledge("stdio", NULL) == -1) { - warn("pledge"); - exit(EXIT_FAILURE); - } + if (pledge("stdio", NULL) == -1) + err(EXIT_FAILURE, "pledge"); /* * Collect our subprocesses. -- 2.20.1