summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acme-client
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2019-04-01 04:18:54 +0000
committernaddy <naddy@openbsd.org>2019-04-01 04:18:54 +0000
commitec13f15c00d9e0796322792c6445bffd4d266bb1 (patch)
treea64a9a91efd11bfc53fdb3e08afd1a47fa440613 /usr.sbin/acme-client
parentChange a strange "} if" into the intended "} else if". No practial (diff)
downloadwireguard-openbsd-ec13f15c00d9e0796322792c6445bffd4d266bb1.tar.xz
wireguard-openbsd-ec13f15c00d9e0796322792c6445bffd4d266bb1.zip
repair confusing "} if"; from florian@
Diffstat (limited to 'usr.sbin/acme-client')
-rw-r--r--usr.sbin/acme-client/chngproc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/acme-client/chngproc.c b/usr.sbin/acme-client/chngproc.c
index 6e4089c8590..218b608000d 100644
--- a/usr.sbin/acme-client/chngproc.c
+++ b/usr.sbin/acme-client/chngproc.c
@@ -1,4 +1,4 @@
-/* $Id: chngproc.c,v 1.12 2017/01/24 13:32:55 jsing Exp $ */
+/* $Id: chngproc.c,v 1.13 2019/04/01 04:18:54 naddy Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -106,10 +106,12 @@ chngproc(int netsock, const char *root)
if (fd == -1) {
warn("%s", fs[fsz - 1]);
goto out;
- } if (write(fd, fmt, strlen(fmt)) == -1) {
+ }
+ if (write(fd, fmt, strlen(fmt)) == -1) {
warn("%s", fs[fsz - 1]);
goto out;
- } else if (close(fd) == -1) {
+ }
+ if (close(fd) == -1) {
warn("%s", fs[fsz - 1]);
goto out;
}