summaryrefslogtreecommitdiff
path: root/usr.sbin/ikectl
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:26:26 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:26:26 +0000
commit7c10cb8430e7817009359effc0caa9daf3276bc0 (patch)
treee980f2db1073f1ef0c1e34311636dbd9e7decdf5 /usr.sbin/ikectl
parent11fbd90fda36e04b84809e11d87dc2ff354b4e89 (diff)
Unify error reporting in various control programs.
Just use "read error" since the code also uses "write error" for the imsg_flush case. OK tb@
Diffstat (limited to 'usr.sbin/ikectl')
-rw-r--r--usr.sbin/ikectl/ikectl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c
index 93f061c0460..71c58fdcd2f 100644
--- a/usr.sbin/ikectl/ikectl.c
+++ b/usr.sbin/ikectl/ikectl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikectl.c,v 1.34 2024/11/21 13:21:34 claudio Exp $ */
+/* $OpenBSD: ikectl.c,v 1.35 2024/11/21 13:26:25 claudio Exp $ */
/*
* Copyright (c) 2007-2013 Reyk Floeter <reyk@openbsd.org>
@@ -344,7 +344,7 @@ main(int argc, char *argv[])
while (!done) {
if ((n = imsgbuf_read(ibuf)) == -1)
- errx(1, "imsgbuf_read error");
+ err(1, "read error");
if (n == 0)
errx(1, "pipe closed");