summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/main.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:28:55 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-11-21 13:28:55 +0000
commit94b4ab6477f7a9800d77232563fa206c1ee8a907 (patch)
tree435b6b5461b61f0d45317fe18b5e6719c7f9f439 /usr.sbin/rpki-client/main.c
parentd4c259af8b5a77d599c11a2f0611ab1cfb868044 (diff)
Adjust rpki-client to the new msgbuf_write api
OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/main.c')
-rw-r--r--usr.sbin/rpki-client/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 6d7867dc180..b5c6250fda1 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.272 2024/11/21 13:12:19 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.273 2024/11/21 13:28:54 claudio Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -1235,10 +1235,6 @@ main(int argc, char *argv[])
msgbuf_init(&rsyncq);
msgbuf_init(&httpq);
msgbuf_init(&rrdpq);
- procq.fd = procfd;
- rsyncq.fd = rsyncfd;
- httpq.fd = httpfd;
- rrdpq.fd = rrdpfd;
/*
* The main process drives the top-down scan to leaf ROAs using
@@ -1310,7 +1306,7 @@ main(int argc, char *argv[])
if (pfd[i].revents & POLLHUP)
hangup = 1;
if (pfd[i].revents & POLLOUT) {
- if (msgbuf_write(queues[i]) == -1) {
+ if (msgbuf_write(pfd[i].fd, queues[i]) == -1) {
if (errno == EPIPE)
warnx("write[%d]: "
"connection closed", i);