diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:26:26 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:26:26 +0000 |
commit | 7c10cb8430e7817009359effc0caa9daf3276bc0 (patch) | |
tree | e980f2db1073f1ef0c1e34311636dbd9e7decdf5 /usr.sbin/dhcp6leasectl | |
parent | 11fbd90fda36e04b84809e11d87dc2ff354b4e89 (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/dhcp6leasectl')
-rw-r--r-- | usr.sbin/dhcp6leasectl/dhcp6leasectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcp6leasectl/dhcp6leasectl.c b/usr.sbin/dhcp6leasectl/dhcp6leasectl.c index b29eb42b1af..4a2f10385c2 100644 --- a/usr.sbin/dhcp6leasectl/dhcp6leasectl.c +++ b/usr.sbin/dhcp6leasectl/dhcp6leasectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcp6leasectl.c,v 1.4 2024/11/21 13:21:34 claudio Exp $ */ +/* $OpenBSD: dhcp6leasectl.c,v 1.5 2024/11/21 13:26:25 claudio Exp $ */ /* * Copyright (c) 2021, 2024 Florian Obser <florian@openbsd.org> @@ -140,7 +140,7 @@ main(int argc, char *argv[]) err(1, "write error"); if ((n = imsgbuf_read(ibuf)) == -1) - errx(1, "imsgbuf_read error"); + err(1, "read error"); if (n == 0) errx(1, "pipe closed"); |