summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 9d92a18ca36..2ad5102274a 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.272 2024/11/21 13:16:06 claudio Exp $ */
+/* $OpenBSD: bgpd.c,v 1.273 2024/11/21 13:17:01 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -276,9 +276,9 @@ main(int argc, char *argv[])
(ibuf_rde = malloc(sizeof(struct imsgbuf))) == NULL ||
(ibuf_rtr = malloc(sizeof(struct imsgbuf))) == NULL)
fatal(NULL);
- imsg_init(ibuf_se, pipe_m2s[0]);
- imsg_init(ibuf_rde, pipe_m2r[0]);
- imsg_init(ibuf_rtr, pipe_m2roa[0]);
+ imsgbuf_init(ibuf_se, pipe_m2s[0]);
+ imsgbuf_init(ibuf_rde, pipe_m2r[0]);
+ imsgbuf_init(ibuf_rtr, pipe_m2roa[0]);
mrt_init(ibuf_rde, ibuf_se);
if (kr_init(&rfd, conf->fib_priority) == -1)
quit = 1;
@@ -1273,7 +1273,7 @@ handle_pollfd(struct pollfd *pfd, struct imsgbuf *i)
return (0);
if (pfd->revents & POLLOUT)
- if (imsg_write(i) == -1) {
+ if (imsgbuf_write(i) == -1) {
log_warn("imsg write error");
close(i->fd);
i->fd = -1;
@@ -1281,7 +1281,7 @@ handle_pollfd(struct pollfd *pfd, struct imsgbuf *i)
}
if (pfd->revents & POLLIN) {
- if ((n = imsg_read(i)) == -1 && errno != EAGAIN) {
+ if ((n = imsgbuf_read(i)) == -1 && errno != EAGAIN) {
log_warn("imsg read error");
close(i->fd);
i->fd = -1;