summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpctl
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dvmrpctl')
-rw-r--r--usr.sbin/dvmrpctl/dvmrpctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/dvmrpctl/dvmrpctl.c b/usr.sbin/dvmrpctl/dvmrpctl.c
index fd8f3390d5b..f7fa58e3bf1 100644
--- a/usr.sbin/dvmrpctl/dvmrpctl.c
+++ b/usr.sbin/dvmrpctl/dvmrpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dvmrpctl.c,v 1.17 2024/11/21 13:08:50 claudio Exp $ */
+/* $OpenBSD: dvmrpctl.c,v 1.18 2024/11/21 13:17:01 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -100,7 +100,7 @@ main(int argc, char *argv[])
if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL)
fatal(NULL);
- imsg_init(ibuf, ctl_sock);
+ imsgbuf_init(ibuf, ctl_sock);
done = 0;
/* process user request */
@@ -173,12 +173,12 @@ main(int argc, char *argv[])
break;
}
- 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");