diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2018-07-30 09:54:36 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2018-07-30 09:54:36 +0000 |
commit | 04ea9f509c3e489a689b0daef6dc6d8e7c8b48ec (patch) | |
tree | 03d8a92737332c30cfa416c8e02a5e5b3b242169 /usr.sbin | |
parent | 5b9fbbf0eaed91537c16a9513f9ab8a6ef25b0d9 (diff) |
replace warn() + exit() with err()
From Ross L Richardson.
Diffstat (limited to 'usr.sbin')
-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. |