From: benno Date: Mon, 30 Jul 2018 09:54:35 +0000 (+0000) Subject: replace warn() + exit() with err() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=30f3541452861b4a67815da6ffc49b68b55951c9;p=openbsd replace warn() + exit() with err() From Ross L Richardson. --- 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.