summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:17:59 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:17:59 +0000
commit4efad393769386dddf5775e5943647ffd6ef04e0 (patch)
treeaff4368f8771b71684bbc5c079be47a6bea32b51 /usr.sbin
parentcaba869c8447fc7ef9f32581e1d02262e51ec18a (diff)
Use imsgbuf_clear() where appropriate instead of msgbuf_clear().
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/bgpd.c14
-rw-r--r--usr.sbin/bgpd/control.c4
-rw-r--r--usr.sbin/bgpd/rde.c22
-rw-r--r--usr.sbin/bgpd/rtr.c10
-rw-r--r--usr.sbin/bgpd/session.c16
-rw-r--r--usr.sbin/dvmrpd/control.c4
-rw-r--r--usr.sbin/dvmrpd/dvmrpd.c6
-rw-r--r--usr.sbin/dvmrpd/dvmrpe.c6
-rw-r--r--usr.sbin/dvmrpd/rde.c6
-rw-r--r--usr.sbin/eigrpd/control.c4
-rw-r--r--usr.sbin/eigrpd/eigrpd.c6
-rw-r--r--usr.sbin/eigrpd/eigrpe.c6
-rw-r--r--usr.sbin/eigrpd/rde.c6
-rw-r--r--usr.sbin/httpd/control.c4
-rw-r--r--usr.sbin/ldapd/imsgev.c4
-rw-r--r--usr.sbin/ldpd/control.c4
-rw-r--r--usr.sbin/ldpd/lde.c6
-rw-r--r--usr.sbin/ldpd/ldpd.c6
-rw-r--r--usr.sbin/ldpd/ldpe.c6
-rw-r--r--usr.sbin/npppd/npppd/control.c4
-rw-r--r--usr.sbin/ntpd/constraint.c4
-rw-r--r--usr.sbin/ntpd/control.c4
-rw-r--r--usr.sbin/ntpd/ntp.c6
-rw-r--r--usr.sbin/ntpd/ntp_dns.c4
-rw-r--r--usr.sbin/ntpd/ntpd.c4
-rw-r--r--usr.sbin/ospf6d/control.c4
-rw-r--r--usr.sbin/ospf6d/ospf6d.c6
-rw-r--r--usr.sbin/ospf6d/ospfe.c6
-rw-r--r--usr.sbin/ospf6d/rde.c6
-rw-r--r--usr.sbin/ospfd/control.c4
-rw-r--r--usr.sbin/ospfd/ospfd.c6
-rw-r--r--usr.sbin/ospfd/ospfe.c6
-rw-r--r--usr.sbin/ospfd/rde.c6
-rw-r--r--usr.sbin/rad/control.c4
-rw-r--r--usr.sbin/rad/engine.c6
-rw-r--r--usr.sbin/rad/frontend.c6
-rw-r--r--usr.sbin/rad/rad.c6
-rw-r--r--usr.sbin/radiusd/control.c4
-rw-r--r--usr.sbin/relayd/control.c4
-rw-r--r--usr.sbin/ripd/control.c4
-rw-r--r--usr.sbin/ripd/rde.c6
-rw-r--r--usr.sbin/ripd/ripd.c6
-rw-r--r--usr.sbin/ripd/ripe.c6
-rw-r--r--usr.sbin/vmd/control.c4
44 files changed, 133 insertions, 133 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 2ad5102274a..055d8773c51 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.273 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: bgpd.c,v 1.274 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -362,7 +362,7 @@ BROKEN if (pledge("stdio rpath wpath cpath fattr unix route recvfd sendfd",
if (handle_pollfd(&pfd[PFD_PIPE_SESSION], ibuf_se) == -1) {
log_warnx("main: Lost connection to SE");
- msgbuf_clear(&ibuf_se->w);
+ imsgbuf_clear(ibuf_se);
free(ibuf_se);
ibuf_se = NULL;
quit = 1;
@@ -374,7 +374,7 @@ BROKEN if (pledge("stdio rpath wpath cpath fattr unix route recvfd sendfd",
if (handle_pollfd(&pfd[PFD_PIPE_RDE], ibuf_rde) == -1) {
log_warnx("main: Lost connection to RDE");
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
free(ibuf_rde);
ibuf_rde = NULL;
quit = 1;
@@ -385,7 +385,7 @@ BROKEN if (pledge("stdio rpath wpath cpath fattr unix route recvfd sendfd",
if (handle_pollfd(&pfd[PFD_PIPE_RTR], ibuf_rtr) == -1) {
log_warnx("main: Lost connection to RTR");
- msgbuf_clear(&ibuf_rtr->w);
+ imsgbuf_clear(ibuf_rtr);
free(ibuf_rtr);
ibuf_rtr = NULL;
quit = 1;
@@ -447,19 +447,19 @@ BROKEN if (pledge("stdio rpath wpath cpath fattr unix route recvfd sendfd",
/* close pipes */
if (ibuf_se) {
- msgbuf_clear(&ibuf_se->w);
+ imsgbuf_clear(ibuf_se);
close(ibuf_se->fd);
free(ibuf_se);
ibuf_se = NULL;
}
if (ibuf_rde) {
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
close(ibuf_rde->fd);
free(ibuf_rde);
ibuf_rde = NULL;
}
if (ibuf_rtr) {
- msgbuf_clear(&ibuf_rtr->w);
+ imsgbuf_clear(ibuf_rtr);
close(ibuf_rtr->fd);
free(ibuf_rtr);
ibuf_rtr = NULL;
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index 55927ead3ec..b44be081de6 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.124 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.125 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -221,7 +221,7 @@ control_close(struct ctl_conn *c)
if (c->terminate && c->imsgbuf.pid)
imsg_ctl_rde_msg(IMSG_CTL_TERMINATE, 0, c->imsgbuf.pid);
- msgbuf_clear(&c->imsgbuf.w);
+ imsgbuf_clear(&c->imsgbuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
close(c->imsgbuf.fd);
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index e3beebbff20..da09b8e4d27 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.635 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.636 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -274,7 +274,7 @@ rde_main(int debug, int verbose)
if (handle_pollfd(&pfd[PFD_PIPE_SESSION], ibuf_se) == -1) {
log_warnx("RDE: Lost connection to SE");
- msgbuf_clear(&ibuf_se->w);
+ imsgbuf_clear(ibuf_se);
free(ibuf_se);
ibuf_se = NULL;
} else
@@ -283,7 +283,7 @@ rde_main(int debug, int verbose)
if (handle_pollfd(&pfd[PFD_PIPE_SESSION_CTL], ibuf_se_ctl) ==
-1) {
log_warnx("RDE: Lost connection to SE control");
- msgbuf_clear(&ibuf_se_ctl->w);
+ imsgbuf_clear(ibuf_se_ctl);
free(ibuf_se_ctl);
ibuf_se_ctl = NULL;
} else
@@ -291,7 +291,7 @@ rde_main(int debug, int verbose)
if (handle_pollfd(&pfd[PFD_PIPE_ROA], ibuf_rtr) == -1) {
log_warnx("RDE: Lost connection to ROA");
- msgbuf_clear(&ibuf_rtr->w);
+ imsgbuf_clear(ibuf_rtr);
free(ibuf_rtr);
ibuf_rtr = NULL;
} else
@@ -325,21 +325,21 @@ rde_main(int debug, int verbose)
/* close pipes */
if (ibuf_se) {
- msgbuf_clear(&ibuf_se->w);
+ imsgbuf_clear(ibuf_se);
close(ibuf_se->fd);
free(ibuf_se);
}
if (ibuf_se_ctl) {
- msgbuf_clear(&ibuf_se_ctl->w);
+ imsgbuf_clear(ibuf_se_ctl);
close(ibuf_se_ctl->fd);
free(ibuf_se_ctl);
}
if (ibuf_rtr) {
- msgbuf_clear(&ibuf_rtr->w);
+ imsgbuf_clear(ibuf_rtr);
close(ibuf_rtr->fd);
free(ibuf_rtr);
}
- msgbuf_clear(&ibuf_main->w);
+ imsgbuf_clear(ibuf_main);
close(ibuf_main->fd);
free(ibuf_main);
@@ -849,7 +849,7 @@ rde_dispatch_imsg_parent(struct imsgbuf *imsgbuf)
if (ibuf_se) {
log_warnx("Unexpected imsg connection "
"to SE received");
- msgbuf_clear(&ibuf_se->w);
+ imsgbuf_clear(ibuf_se);
free(ibuf_se);
}
ibuf_se = i;
@@ -858,7 +858,7 @@ rde_dispatch_imsg_parent(struct imsgbuf *imsgbuf)
if (ibuf_se_ctl) {
log_warnx("Unexpected imsg ctl "
"connection to SE received");
- msgbuf_clear(&ibuf_se_ctl->w);
+ imsgbuf_clear(ibuf_se_ctl);
free(ibuf_se_ctl);
}
ibuf_se_ctl = i;
@@ -867,7 +867,7 @@ rde_dispatch_imsg_parent(struct imsgbuf *imsgbuf)
if (ibuf_rtr) {
log_warnx("Unexpected imsg ctl "
"connection to ROA received");
- msgbuf_clear(&ibuf_rtr->w);
+ imsgbuf_clear(ibuf_rtr);
free(ibuf_rtr);
}
ibuf_rtr = i;
diff --git a/usr.sbin/bgpd/rtr.c b/usr.sbin/bgpd/rtr.c
index 95bd485a6d0..1a53d77edd7 100644
--- a/usr.sbin/bgpd/rtr.c
+++ b/usr.sbin/bgpd/rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtr.c,v 1.25 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: rtr.c,v 1.26 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@@ -264,7 +264,7 @@ rtr_main(int debug, int verbose)
if (handle_pollfd(&pfd[PFD_PIPE_RDE], ibuf_rde) == -1) {
log_warnx("RTR: Lost connection to RDE");
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
free(ibuf_rde);
ibuf_rde = NULL;
} else
@@ -290,11 +290,11 @@ rtr_main(int debug, int verbose)
/* close pipes */
if (ibuf_rde) {
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
close(ibuf_rde->fd);
free(ibuf_rde);
}
- msgbuf_clear(&ibuf_main->w);
+ imsgbuf_clear(ibuf_main);
close(ibuf_main->fd);
free(ibuf_main);
@@ -331,7 +331,7 @@ rtr_dispatch_imsg_parent(struct imsgbuf *imsgbuf)
if (ibuf_rde) {
log_warnx("Unexpected imsg ctl "
"connection to RDE received");
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
free(ibuf_rde);
}
if ((ibuf_rde = malloc(sizeof(struct imsgbuf))) == NULL)
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 334b1028a49..49a10e1c88d 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.488 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.489 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -475,7 +475,7 @@ session_main(int debug, int verbose)
if (handle_pollfd(&pfd[PFD_PIPE_ROUTE], ibuf_rde) == -1) {
log_warnx("SE: Lost connection to RDE");
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
free(ibuf_rde);
ibuf_rde = NULL;
} else
@@ -485,7 +485,7 @@ session_main(int debug, int verbose)
if (handle_pollfd(&pfd[PFD_PIPE_ROUTE_CTL], ibuf_rde_ctl) ==
-1) {
log_warnx("SE: Lost connection to RDE control");
- msgbuf_clear(&ibuf_rde_ctl->w);
+ imsgbuf_clear(ibuf_rde_ctl);
free(ibuf_rde_ctl);
ibuf_rde_ctl = NULL;
} else
@@ -540,17 +540,17 @@ session_main(int debug, int verbose)
/* close pipes */
if (ibuf_rde) {
imsgbuf_write(ibuf_rde);
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
close(ibuf_rde->fd);
free(ibuf_rde);
}
if (ibuf_rde_ctl) {
- msgbuf_clear(&ibuf_rde_ctl->w);
+ imsgbuf_clear(ibuf_rde_ctl);
close(ibuf_rde_ctl->fd);
free(ibuf_rde_ctl);
}
imsgbuf_write(ibuf_main);
- msgbuf_clear(&ibuf_main->w);
+ imsgbuf_clear(ibuf_main);
close(ibuf_main->fd);
free(ibuf_main);
@@ -2962,7 +2962,7 @@ session_dispatch_imsg(struct imsgbuf *imsgbuf, int idx, u_int *listener_cnt)
if (ibuf_rde) {
log_warnx("Unexpected imsg connection "
"to RDE received");
- msgbuf_clear(&ibuf_rde->w);
+ imsgbuf_clear(ibuf_rde);
free(ibuf_rde);
}
ibuf_rde = i;
@@ -2970,7 +2970,7 @@ session_dispatch_imsg(struct imsgbuf *imsgbuf, int idx, u_int *listener_cnt)
if (ibuf_rde_ctl) {
log_warnx("Unexpected imsg ctl "
"connection to RDE received");
- msgbuf_clear(&ibuf_rde_ctl->w);
+ imsgbuf_clear(ibuf_rde_ctl);
free(ibuf_rde_ctl);
}
ibuf_rde_ctl = i;
diff --git a/usr.sbin/dvmrpd/control.c b/usr.sbin/dvmrpd/control.c
index 618b9af31cd..9169a067be2 100644
--- a/usr.sbin/dvmrpd/control.c
+++ b/usr.sbin/dvmrpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.28 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.29 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -198,7 +198,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/dvmrpd/dvmrpd.c b/usr.sbin/dvmrpd/dvmrpd.c
index 205d1fe4ffd..128a0f0e049 100644
--- a/usr.sbin/dvmrpd/dvmrpd.c
+++ b/usr.sbin/dvmrpd/dvmrpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dvmrpd.c,v 1.30 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: dvmrpd.c,v 1.31 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -274,9 +274,9 @@ dvmrpd_shutdown(void)
int status;
/* close pipes */
- msgbuf_clear(&iev_dvmrpe->ibuf.w);
+ imsgbuf_clear(&iev_dvmrpe->ibuf);
close(iev_dvmrpe->ibuf.fd);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
control_cleanup();
diff --git a/usr.sbin/dvmrpd/dvmrpe.c b/usr.sbin/dvmrpd/dvmrpe.c
index 13ecd1074ac..c80d89eb7eb 100644
--- a/usr.sbin/dvmrpd/dvmrpe.c
+++ b/usr.sbin/dvmrpd/dvmrpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dvmrpe.c,v 1.27 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: dvmrpe.c,v 1.28 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -192,10 +192,10 @@ dvmrpe_shutdown(void)
/* close pipes */
imsgbuf_write(&iev_rde->ibuf);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
/* stop all interfaces and delete them */
diff --git a/usr.sbin/dvmrpd/rde.c b/usr.sbin/dvmrpd/rde.c
index 01140177d22..3c7c7e3fb86 100644
--- a/usr.sbin/dvmrpd/rde.c
+++ b/usr.sbin/dvmrpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.36 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.37 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -156,9 +156,9 @@ rde_shutdown(void)
struct iface *iface;
/* close pipes */
- msgbuf_clear(&iev_dvmrpe->ibuf.w);
+ imsgbuf_clear(&iev_dvmrpe->ibuf);
close(iev_dvmrpe->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
rt_clear();
diff --git a/usr.sbin/eigrpd/control.c b/usr.sbin/eigrpd/control.c
index bc5667064c6..0a2609c5f58 100644
--- a/usr.sbin/eigrpd/control.c
+++ b/usr.sbin/eigrpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.13 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.14 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -190,7 +190,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/eigrpd/eigrpd.c b/usr.sbin/eigrpd/eigrpd.c
index 85d022ea395..155d8d94ebb 100644
--- a/usr.sbin/eigrpd/eigrpd.c
+++ b/usr.sbin/eigrpd/eigrpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eigrpd.c,v 1.32 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: eigrpd.c,v 1.33 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -284,9 +284,9 @@ eigrpd_shutdown(void)
int status;
/* close pipes */
- msgbuf_clear(&iev_eigrpe->ibuf.w);
+ imsgbuf_clear(&iev_eigrpe->ibuf);
close(iev_eigrpe->ibuf.fd);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
kr_shutdown();
diff --git a/usr.sbin/eigrpd/eigrpe.c b/usr.sbin/eigrpd/eigrpe.c
index 381badd1c56..5075e5a2a53 100644
--- a/usr.sbin/eigrpd/eigrpe.c
+++ b/usr.sbin/eigrpd/eigrpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eigrpe.c,v 1.44 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: eigrpe.c,v 1.45 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -174,10 +174,10 @@ eigrpe_shutdown(void)
{
/* close pipes */
imsgbuf_write(&iev_rde->ibuf);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
config_clear(econf, PROC_EIGRP_ENGINE);
diff --git a/usr.sbin/eigrpd/rde.c b/usr.sbin/eigrpd/rde.c
index 2dfee83a7e8..ec6afc01243 100644
--- a/usr.sbin/eigrpd/rde.c
+++ b/usr.sbin/eigrpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.29 2024/11/21 13:17:01 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.30 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -131,9 +131,9 @@ static __dead void
rde_shutdown(void)
{
/* close pipes */
- msgbuf_clear(&iev_eigrpe->ibuf.w);
+ imsgbuf_clear(&iev_eigrpe->ibuf);
close(iev_eigrpe->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
config_clear(rdeconf, PROC_RDE_ENGINE);
diff --git a/usr.sbin/httpd/control.c b/usr.sbin/httpd/control.c
index 9ed1af59022..55976ae5618 100644
--- a/usr.sbin/httpd/control.c
+++ b/usr.sbin/httpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.18 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.19 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -198,7 +198,7 @@ control_close(int fd, struct control_sock *cs)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ldapd/imsgev.c b/usr.sbin/ldapd/imsgev.c
index 7a4805e9933..e26c26d6e86 100644
--- a/usr.sbin/ldapd/imsgev.c
+++ b/usr.sbin/ldapd/imsgev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsgev.c,v 1.9 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: imsgev.c,v 1.10 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2009 Eric Faurot <eric@openbsd.org>
@@ -74,7 +74,7 @@ void
imsgev_clear(struct imsgev *iev)
{
event_del(&iev->ev);
- msgbuf_clear(&iev->ibuf.w);
+ imsgbuf_clear(&iev->ibuf);
close(iev->ibuf.fd);
}
diff --git a/usr.sbin/ldpd/control.c b/usr.sbin/ldpd/control.c
index 4a2ce22ae52..7fcbaaf94cb 100644
--- a/usr.sbin/ldpd/control.c
+++ b/usr.sbin/ldpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.35 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.36 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -179,7 +179,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c
index 2b5940f3455..a7c43fa0fc1 100644
--- a/usr.sbin/ldpd/lde.c
+++ b/usr.sbin/ldpd/lde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde.c,v 1.81 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: lde.c,v 1.82 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -151,9 +151,9 @@ static __dead void
lde_shutdown(void)
{
/* close pipes */
- msgbuf_clear(&iev_ldpe->ibuf.w);
+ imsgbuf_clear(&iev_ldpe->ibuf);
close(iev_ldpe->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
lde_gc_stop_timer();
diff --git a/usr.sbin/ldpd/ldpd.c b/usr.sbin/ldpd/ldpd.c
index 64cbde25732..ee1ac31bd49 100644
--- a/usr.sbin/ldpd/ldpd.c
+++ b/usr.sbin/ldpd/ldpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpd.c,v 1.72 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ldpd.c,v 1.73 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -291,9 +291,9 @@ ldpd_shutdown(void)
int status;
/* close pipes */
- msgbuf_clear(&iev_ldpe->ibuf.w);
+ imsgbuf_clear(&iev_ldpe->ibuf);
close(iev_ldpe->ibuf.fd);
- msgbuf_clear(&iev_lde->ibuf.w);
+ imsgbuf_clear(&iev_lde->ibuf);
close(iev_lde->ibuf.fd);
kr_shutdown();
diff --git a/usr.sbin/ldpd/ldpe.c b/usr.sbin/ldpd/ldpe.c
index 3705b0cef70..8c6d0721316 100644
--- a/usr.sbin/ldpd/ldpe.c
+++ b/usr.sbin/ldpd/ldpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldpe.c,v 1.85 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ldpe.c,v 1.86 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -160,10 +160,10 @@ ldpe_shutdown(void)
/* close pipes */
imsgbuf_write(&iev_lde->ibuf);
- msgbuf_clear(&iev_lde->ibuf.w);
+ imsgbuf_clear(&iev_lde->ibuf);
close(iev_lde->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
control_cleanup();
diff --git a/usr.sbin/npppd/npppd/control.c b/usr.sbin/npppd/npppd/control.c
index bd375cdbacd..98420b8c488 100644
--- a/usr.sbin/npppd/npppd/control.c
+++ b/usr.sbin/npppd/npppd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.11 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.12 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -221,7 +221,7 @@ control_close(int fd, struct control_sock *cs)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ntpd/constraint.c b/usr.sbin/ntpd/constraint.c
index 4241b70cc83..b994c02cf6b 100644
--- a/usr.sbin/ntpd/constraint.c
+++ b/usr.sbin/ntpd/constraint.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: constraint.c,v 1.57 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: constraint.c,v 1.58 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -581,7 +581,7 @@ constraint_remove(struct constraint *cstr)
{
TAILQ_REMOVE(&conf->constraints, cstr, entry);
- msgbuf_clear(&cstr->ibuf.w);
+ imsgbuf_clear(&cstr->ibuf);
if (cstr->fd != -1)
close(cstr->fd);
free(cstr->addr_head.name);
diff --git a/usr.sbin/ntpd/control.c b/usr.sbin/ntpd/control.c
index 3ecb251c5a0..e6d27260f48 100644
--- a/usr.sbin/ntpd/control.c
+++ b/usr.sbin/ntpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.24 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.25 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -179,7 +179,7 @@ control_close(int fd)
return (0);
}
- msgbuf_clear(&c->ibuf.w);
+ imsgbuf_clear(&c->ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
close(c->ibuf.fd);
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 078f5876311..e25f61b2a2e 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.177 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ntp.c,v 1.178 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -461,10 +461,10 @@ ntp_main(struct ntpd_conf *nconf, struct passwd *pw, int argc, char **argv)
}
imsgbuf_write(ibuf_main);
- msgbuf_clear(&ibuf_main->w);
+ imsgbuf_clear(ibuf_main);
free(ibuf_main);
imsgbuf_write(ibuf_dns);
- msgbuf_clear(&ibuf_dns->w);
+ imsgbuf_clear(ibuf_dns);
free(ibuf_dns);
log_info("ntp engine exiting");
diff --git a/usr.sbin/ntpd/ntp_dns.c b/usr.sbin/ntpd/ntp_dns.c
index 0e56a0fa5b1..a3dbdf9606e 100644
--- a/usr.sbin/ntpd/ntp_dns.c
+++ b/usr.sbin/ntpd/ntp_dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp_dns.c,v 1.32 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ntp_dns.c,v 1.33 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@@ -129,7 +129,7 @@ ntp_dns(struct ntpd_conf *nconf, struct passwd *pw)
}
}
- msgbuf_clear(&ibuf_dns->w);
+ imsgbuf_clear(ibuf_dns);
free(ibuf_dns);
exit(0);
}
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 103fff3331b..be72394ff18 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.c,v 1.137 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ntpd.c,v 1.138 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -365,7 +365,7 @@ main(int argc, char *argv[])
fatal("wait");
} while (pid != -1 || (pid == -1 && errno == EINTR));
- msgbuf_clear(&ibuf->w);
+ imsgbuf_clear(ibuf);
free(ibuf);
log_info("Terminating");
return (0);
diff --git a/usr.sbin/ospf6d/control.c b/usr.sbin/ospf6d/control.c
index 2df6321ff0e..9c192549f83 100644
--- a/usr.sbin/ospf6d/control.c
+++ b/usr.sbin/ospf6d/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.35 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.36 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -222,7 +222,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ospf6d/ospf6d.c b/usr.sbin/ospf6d/ospf6d.c
index 76e4830472c..cfd496e2662 100644
--- a/usr.sbin/ospf6d/ospf6d.c
+++ b/usr.sbin/ospf6d/ospf6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6d.c,v 1.57 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ospf6d.c,v 1.58 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -299,9 +299,9 @@ ospfd_shutdown(void)
int status;
/* close pipes */
- msgbuf_clear(&iev_ospfe->ibuf.w);
+ imsgbuf_clear(&iev_ospfe->ibuf);
close(iev_ospfe->ibuf.fd);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
control_cleanup();
diff --git a/usr.sbin/ospf6d/ospfe.c b/usr.sbin/ospf6d/ospfe.c
index 4700131d80b..30b4b45d111 100644
--- a/usr.sbin/ospf6d/ospfe.c
+++ b/usr.sbin/ospf6d/ospfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.c,v 1.75 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ospfe.c,v 1.76 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -200,10 +200,10 @@ ospfe_shutdown(void)
/* close pipes */
imsgbuf_write(&iev_rde->ibuf);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
/* stop all interfaces and remove all areas */
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c
index bbdf77df3fa..1e45a2aa491 100644
--- a/usr.sbin/ospf6d/rde.c
+++ b/usr.sbin/ospf6d/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.94 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.95 2024/11/21 13:17:57 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -220,9 +220,9 @@ rde_shutdown(void)
struct vertex *v, *nv;
/* close pipes */
- msgbuf_clear(&iev_ospfe->ibuf.w);
+ imsgbuf_clear(&iev_ospfe->ibuf);
close(iev_ospfe->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
stop_spf_timer(rdeconf);
diff --git a/usr.sbin/ospfd/control.c b/usr.sbin/ospfd/control.c
index d325c17b452..48bac139bb9 100644
--- a/usr.sbin/ospfd/control.c
+++ b/usr.sbin/ospfd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.51 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.52 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -222,7 +222,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 84489f26132..ae048435b97 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.120 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ospfd.c,v 1.121 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -311,9 +311,9 @@ ospfd_shutdown(void)
struct redistribute *r;
/* close pipes */
- msgbuf_clear(&iev_ospfe->ibuf.w);
+ imsgbuf_clear(&iev_ospfe->ibuf);
close(iev_ospfe->ibuf.fd);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
control_cleanup();
diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c
index 68ad5c02d9b..554e4a83f14 100644
--- a/usr.sbin/ospfd/ospfe.c
+++ b/usr.sbin/ospfd/ospfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.c,v 1.117 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ospfe.c,v 1.118 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -211,10 +211,10 @@ ospfe_shutdown(void)
/* close pipes */
imsgbuf_write(&iev_rde->ibuf);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
/* stop all interfaces and remove all areas */
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c
index 5ec05f2d079..b8e3254e5bb 100644
--- a/usr.sbin/ospfd/rde.c
+++ b/usr.sbin/ospfd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.115 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.116 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -206,9 +206,9 @@ rde_shutdown(void)
struct vertex *v, *nv;
/* close pipes */
- msgbuf_clear(&iev_ospfe->ibuf.w);
+ imsgbuf_clear(&iev_ospfe->ibuf);
close(iev_ospfe->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
stop_spf_timer(rdeconf);
diff --git a/usr.sbin/rad/control.c b/usr.sbin/rad/control.c
index fa84bdd0aef..e491dbcb407 100644
--- a/usr.sbin/rad/control.c
+++ b/usr.sbin/rad/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.11 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.12 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -201,7 +201,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/rad/engine.c b/usr.sbin/rad/engine.c
index b8af4004541..b5fbe02226b 100644
--- a/usr.sbin/rad/engine.c
+++ b/usr.sbin/rad/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.25 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: engine.c,v 1.26 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -159,9 +159,9 @@ __dead void
engine_shutdown(void)
{
/* Close pipes. */
- msgbuf_clear(&iev_frontend->ibuf.w);
+ imsgbuf_clear(&iev_frontend->ibuf);
close(iev_frontend->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
config_clear(engine_conf);
diff --git a/usr.sbin/rad/frontend.c b/usr.sbin/rad/frontend.c
index 3536cf8baa0..9e177a5cb67 100644
--- a/usr.sbin/rad/frontend.c
+++ b/usr.sbin/rad/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.52 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: frontend.c,v 1.53 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -274,10 +274,10 @@ frontend_shutdown(void)
{
/* Close pipes. */
imsgbuf_write(&iev_engine->ibuf);
- msgbuf_clear(&iev_engine->ibuf.w);
+ imsgbuf_clear(&iev_engine->ibuf);
close(iev_engine->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
config_clear(frontend_conf);
diff --git a/usr.sbin/rad/rad.c b/usr.sbin/rad/rad.c
index b4d39b08896..81bf1a3ef85 100644
--- a/usr.sbin/rad/rad.c
+++ b/usr.sbin/rad/rad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rad.c,v 1.34 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: rad.c,v 1.35 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -298,9 +298,9 @@ main_shutdown(void)
int status;
/* Close pipes. */
- msgbuf_clear(&iev_frontend->ibuf.w);
+ imsgbuf_clear(&iev_frontend->ibuf);
close(iev_frontend->ibuf.fd);
- msgbuf_clear(&iev_engine->ibuf.w);
+ imsgbuf_clear(&iev_engine->ibuf);
close(iev_engine->ibuf.fd);
config_clear(main_conf);
diff --git a/usr.sbin/radiusd/control.c b/usr.sbin/radiusd/control.c
index ead8f494baa..efa1a9a18b1 100644
--- a/usr.sbin/radiusd/control.c
+++ b/usr.sbin/radiusd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.4 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.5 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -222,7 +222,7 @@ control_close(int fd)
void
control_connfree(struct ctl_conn *c)
{
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/relayd/control.c b/usr.sbin/relayd/control.c
index aa3cd0f938f..d88cf0b00a2 100644
--- a/usr.sbin/relayd/control.c
+++ b/usr.sbin/relayd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.61 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.62 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -198,7 +198,7 @@ control_close(int fd, struct control_sock *cs)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ripd/control.c b/usr.sbin/ripd/control.c
index f48d9c29d50..ec4524a01e2 100644
--- a/usr.sbin/ripd/control.c
+++ b/usr.sbin/ripd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.31 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.32 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -189,7 +189,7 @@ control_close(int fd)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
event_del(&c->iev.ev);
diff --git a/usr.sbin/ripd/rde.c b/usr.sbin/ripd/rde.c
index 2310c175a9b..a2b0fd9c065 100644
--- a/usr.sbin/ripd/rde.c
+++ b/usr.sbin/ripd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.28 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.29 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -164,9 +164,9 @@ __dead void
rde_shutdown(void)
{
/* close pipes */
- msgbuf_clear(&iev_ripe->ibuf.w);
+ imsgbuf_clear(&iev_ripe->ibuf);
close(iev_ripe->ibuf.fd);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
rt_clear();
diff --git a/usr.sbin/ripd/ripd.c b/usr.sbin/ripd/ripd.c
index 251a7bf2e33..b97d8f1e3c2 100644
--- a/usr.sbin/ripd/ripd.c
+++ b/usr.sbin/ripd/ripd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripd.c,v 1.40 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ripd.c,v 1.41 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -270,9 +270,9 @@ ripd_shutdown(void)
int status;
/* close pipes */
- msgbuf_clear(&iev_ripe->ibuf.w);
+ imsgbuf_clear(&iev_ripe->ibuf);
close(iev_ripe->ibuf.fd);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
while ((i = LIST_FIRST(&conf->iface_list)) != NULL) {
diff --git a/usr.sbin/ripd/ripe.c b/usr.sbin/ripd/ripe.c
index 61afe95d5de..decd44904a3 100644
--- a/usr.sbin/ripd/ripe.c
+++ b/usr.sbin/ripd/ripe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripe.c,v 1.34 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: ripe.c,v 1.35 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -457,10 +457,10 @@ ripe_shutdown(void)
/* close pipes */
imsgbuf_write(&iev_rde->ibuf);
- msgbuf_clear(&iev_rde->ibuf.w);
+ imsgbuf_clear(&iev_rde->ibuf);
close(iev_rde->ibuf.fd);
imsgbuf_write(&iev_main->ibuf);
- msgbuf_clear(&iev_main->ibuf.w);
+ imsgbuf_clear(&iev_main->ibuf);
close(iev_main->ibuf.fd);
LIST_FOREACH(iface, &oeconf->iface_list, entry) {
diff --git a/usr.sbin/vmd/control.c b/usr.sbin/vmd/control.c
index 390940e95ee..3b61641236b 100644
--- a/usr.sbin/vmd/control.c
+++ b/usr.sbin/vmd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.46 2024/11/21 13:17:02 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.47 2024/11/21 13:17:58 claudio Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
@@ -340,7 +340,7 @@ control_close(int fd, struct control_sock *cs)
return;
}
- msgbuf_clear(&c->iev.ibuf.w);
+ imsgbuf_clear(&c->iev.ibuf);
TAILQ_REMOVE(&ctl_conns, c, entry);
TAILQ_FOREACH_SAFE(notify, &ctl_notify_q, entry, notify_next) {