summaryrefslogtreecommitdiff
path: root/usr.sbin/ractl/ractl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ractl/ractl.c')
-rw-r--r--usr.sbin/ractl/ractl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ractl/ractl.c b/usr.sbin/ractl/ractl.c
index 146d44408be..588f265958f 100644
--- a/usr.sbin/ractl/ractl.c
+++ b/usr.sbin/ractl/ractl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ractl.c,v 1.4 2024/11/21 13:08:59 claudio Exp $ */
+/* $OpenBSD: ractl.c,v 1.5 2024/11/21 13:17:02 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)
err(1, NULL);
- imsg_init(ibuf, ctl_sock);
+ imsgbuf_init(ibuf, ctl_sock);
done = 0;
/* Process user request. */
@@ -123,12 +123,12 @@ main(int argc, char *argv[])
usage();
}
- 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");