summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/vmd/control.c')
-rw-r--r--usr.sbin/vmd/control.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/vmd/control.c b/usr.sbin/vmd/control.c
index 709c5f69c15..390940e95ee 100644
--- a/usr.sbin/vmd/control.c
+++ b/usr.sbin/vmd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.45 2024/11/21 13:16:07 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.46 2024/11/21 13:17:02 claudio Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
@@ -305,7 +305,7 @@ control_accept(int listenfd, short event, void *arg)
return;
}
- imsg_init(&c->iev.ibuf, connfd);
+ imsgbuf_init(&c->iev.ibuf, connfd);
c->iev.handler = control_dispatch_imsg;
c->iev.events = EV_READ;
c->iev.data = cs;
@@ -381,14 +381,14 @@ control_dispatch_imsg(int fd, short event, void *arg)
}
if (event & EV_READ) {
- if (((n = imsg_read(&c->iev.ibuf)) == -1 && errno != EAGAIN) ||
- n == 0) {
+ if (((n = imsgbuf_read(&c->iev.ibuf)) == -1 &&
+ errno != EAGAIN) || n == 0) {
control_close(fd, cs);
return;
}
}
if (event & EV_WRITE) {
- if (imsg_write(&c->iev.ibuf) == -1) {
+ if (imsgbuf_write(&c->iev.ibuf) == -1) {
control_close(fd, cs);
return;
}
@@ -524,6 +524,6 @@ control_dispatch_imsg(int fd, short event, void *arg)
ret = EINVAL;
imsg_compose_event(&c->iev, IMSG_CTL_FAIL,
0, 0, -1, &ret, sizeof(ret));
- imsg_flush(&c->iev.ibuf);
+ imsgbuf_flush(&c->iev.ibuf);
control_close(fd, cs);
}