summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6ctl/ospf6ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ospf6ctl/ospf6ctl.c')
-rw-r--r--usr.sbin/ospf6ctl/ospf6ctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c
index 36bd6767076..ea7cd609f1c 100644
--- a/usr.sbin/ospf6ctl/ospf6ctl.c
+++ b/usr.sbin/ospf6ctl/ospf6ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6ctl.c,v 1.55 2024/11/21 13:08:57 claudio Exp $ */
+/* $OpenBSD: ospf6ctl.c,v 1.56 2024/11/21 13:17:02 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -132,7 +132,7 @@ main(int argc, char *argv[])
if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL)
err(1, NULL);
- imsg_init(ibuf, ctl_sock);
+ imsgbuf_init(ibuf, ctl_sock);
done = 0;
/* process user request */
@@ -250,12 +250,12 @@ main(int argc, char *argv[])
#endif
}
- if (imsg_flush(ibuf) == -1)
+ if (imsgbuf_flush(ibuf) == -1)
err(1, "write error");
while (!done) {
- if ((n = imsg_read(ibuf)) == -1 && errno != EAGAIN)
- errx(1, "imsg_read error");
+ if ((n = imsgbuf_read(ibuf)) == -1 && errno != EAGAIN)
+ errx(1, "imsgbuf_read error");
if (n == 0)
errx(1, "pipe closed");