summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/lde.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldpd/lde.c')
-rw-r--r--usr.sbin/ldpd/lde.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c
index b16ad2ac2b5..0c0bc813f72 100644
--- a/usr.sbin/ldpd/lde.c
+++ b/usr.sbin/ldpd/lde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde.c,v 1.78 2024/04/23 13:34:51 jsg Exp $ */
+/* $OpenBSD: lde.c,v 1.79 2024/11/21 13:10:39 claudio Exp $ */
/*
* Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org>
@@ -204,8 +204,8 @@ lde_dispatch_imsg(int fd, short event, void *bula)
shut = 1;
}
if (event & EV_WRITE) {
- if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
- fatal("msgbuf_write");
+ if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN)
+ fatal("imsg_write");
if (n == 0) /* connection closed */
shut = 1;
}
@@ -399,8 +399,8 @@ lde_dispatch_parent(int fd, short event, void *bula)
shut = 1;
}
if (event & EV_WRITE) {
- if ((n = msgbuf_write(&ibuf->w)) == -1 && errno != EAGAIN)
- fatal("msgbuf_write");
+ if ((n = imsg_write(ibuf)) == -1 && errno != EAGAIN)
+ fatal("imsg_write");
if (n == 0) /* connection closed */
shut = 1;
}