artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b419905
)
replace warn() + exit() with err()
author
benno
<benno@openbsd.org>
Mon, 30 Jul 2018 09:54:35 +0000
(09:54 +0000)
committer
benno
<benno@openbsd.org>
Mon, 30 Jul 2018 09:54:35 +0000
(09:54 +0000)
From Ross L Richardson.
usr.sbin/acme-client/main.c
patch
|
blob
|
history
diff --git
a/usr.sbin/acme-client/main.c
b/usr.sbin/acme-client/main.c
index
5774203
..
df1928e
100644
(file)
--- a/
usr.sbin/acme-client/main.c
+++ b/
usr.sbin/acme-client/main.c
@@
-1,4
+1,4
@@
-/* $Id: main.c,v 1.3
8 2018/07/30 09:53:14
benno Exp $ */
+/* $Id: main.c,v 1.3
9 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.