summaryrefslogtreecommitdiff
path: root/usr.sbin/sasyncd/monitor.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:17:04 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:17:04 +0000
commitcaba869c8447fc7ef9f32581e1d02262e51ec18a (patch)
treec06988b36b6677e805071a9673b04b5360e2e36d /usr.sbin/sasyncd/monitor.c
parent9c8d00dd06d79ba9fccf07c45cd1bdae73e744c5 (diff)
Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush to
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush. This separates the imsgbuf API from the per-imsg API. OK tb@
Diffstat (limited to 'usr.sbin/sasyncd/monitor.c')
-rw-r--r--usr.sbin/sasyncd/monitor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sasyncd/monitor.c b/usr.sbin/sasyncd/monitor.c
index 60b11e33360..94642b34f7e 100644
--- a/usr.sbin/sasyncd/monitor.c
+++ b/usr.sbin/sasyncd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.22 2017/05/21 02:37:52 deraadt Exp $ */
+/* $OpenBSD: monitor.c,v 1.23 2024/11/21 13:17:02 claudio Exp $ */
/*
* Copyright (c) 2005 Håkan Olsson. All rights reserved.
@@ -487,19 +487,19 @@ m_priv_iked_imsg(u_int cmd)
goto out;
}
- imsg_init(&ibuf, fd);
+ imsgbuf_init(&ibuf, fd);
if (imsg_compose(&ibuf, cmd, 0, 0, -1, NULL, 0) == -1) {
log_err("m_priv_iked_imsg: compose");
goto err;
}
- if (imsg_flush(&ibuf) == -1) {
+ if (imsgbuf_flush(&ibuf) == -1) {
log_err("m_priv_iked_imsg: flush");
goto err;
}
ret = 0;
err:
- imsg_clear(&ibuf);
+ imsgbuf_clear(&ibuf);
out:
if (fd != -1)
close(fd);