summaryrefslogtreecommitdiff
path: root/usr.sbin/rad/frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rad/frontend.c')
-rw-r--r--usr.sbin/rad/frontend.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/rad/frontend.c b/usr.sbin/rad/frontend.c
index c700c079e6d..4ccbcde819f 100644
--- a/usr.sbin/rad/frontend.c
+++ b/usr.sbin/rad/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.49 2024/07/02 17:41:27 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.50 2024/11/21 13:10:47 claudio Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -273,10 +273,10 @@ __dead void
frontend_shutdown(void)
{
/* Close pipes. */
- msgbuf_write(&iev_engine->ibuf.w);
+ imsg_write(&iev_engine->ibuf);
msgbuf_clear(&iev_engine->ibuf.w);
close(iev_engine->ibuf.fd);
- msgbuf_write(&iev_main->ibuf.w);
+ imsg_write(&iev_main->ibuf);
msgbuf_clear(&iev_main->ibuf.w);
close(iev_main->ibuf.fd);
@@ -325,8 +325,8 @@ frontend_dispatch_main(int fd, short event, void *bula)
shut = 1;
}
if (event & EV_WRITE) {
- if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
- fatal("msgbuf_write");
+ if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN)
+ fatal("imsg_write");
if (n == 0) /* Connection closed. */
shut = 1;
}
@@ -538,8 +538,8 @@ frontend_dispatch_engine(int fd, short event, void *bula)
shut = 1;
}
if (event & EV_WRITE) {
- if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
- fatal("msgbuf_write");
+ if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN)
+ fatal("imsg_write");
if (n == 0) /* Connection closed. */
shut = 1;
}