summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2018-07-30 09:54:35 +0000
committerbenno <benno@openbsd.org>2018-07-30 09:54:35 +0000
commit30f3541452861b4a67815da6ffc49b68b55951c9 (patch)
treeda005c84ca4b2df14adf124c06c04fdbfe2c00ec
parentline too long and whitespace. From Ross L Richardson. (diff)
downloadwireguard-openbsd-30f3541452861b4a67815da6ffc49b68b55951c9.tar.xz
wireguard-openbsd-30f3541452861b4a67815da6ffc49b68b55951c9.zip
replace warn() + exit() with err()
From Ross L Richardson.
-rw-r--r--usr.sbin/acme-client/main.c8
1 files 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 <kristaps@bsd.lv>
*
@@ -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.