diff options
author | 2018-07-30 09:54:35 +0000 | |
---|---|---|
committer | 2018-07-30 09:54:35 +0000 | |
commit | 30f3541452861b4a67815da6ffc49b68b55951c9 (patch) | |
tree | da005c84ca4b2df14adf124c06c04fdbfe2c00ec | |
parent | line too long and whitespace. From Ross L Richardson. (diff) | |
download | wireguard-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.c | 8 |
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. |