summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/mrt.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-16 17:36:30 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-16 17:36:30 +0000
commit7744c2a5861ec0155d946082214e3df104d5bd55 (patch)
treec9fdda2bd918ffbef7c51992d7c8ea41ed68dd46 /usr.sbin/bgpd/mrt.c
parent7a3af50607a1ab6f9cbd52b9d0e81f24a47ba672 (diff)
imsg API cleanup:
-kill imsg_compose_pid, imsg_compose_fdpass and imsg_create_pid -extend the original imsg_compose/_create API to take pid & fd too -make imsg_compose do imsg_create + imsg_add + imsg_close instead of duplicating the code -adjust all callers to the new API ok claudio
Diffstat (limited to 'usr.sbin/bgpd/mrt.c')
-rw-r--r--usr.sbin/bgpd/mrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/mrt.c b/usr.sbin/bgpd/mrt.c
index f214782554e..b9db71fca52 100644
--- a/usr.sbin/bgpd/mrt.c
+++ b/usr.sbin/bgpd/mrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.c,v 1.44 2004/08/13 14:03:20 claudio Exp $ */
+/* $OpenBSD: mrt.c,v 1.45 2004/09/16 17:36:29 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -598,7 +598,7 @@ mrt_open(struct mrt *mrt, time_t now)
i = mrt->type == MRT_TABLE_DUMP ? 0 : 1;
- if (imsg_compose_fdpass(mrt_imsgbuf[i], type, mrt->fd,
+ if (imsg_compose(mrt_imsgbuf[i], type, 0, 0, mrt->fd,
mrt, sizeof(struct mrt)) == -1)
log_warn("mrt_open");