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/ospf6ctl | |
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/ospf6ctl')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index 965edcc86af..6f8cc882f58 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.57 2024/11/21 13:21:34 claudio Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.58 2024/11/21 13:26:25 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -255,7 +255,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"); |