diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-16 17:36:30 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-16 17:36:30 +0000 |
commit | 7744c2a5861ec0155d946082214e3df104d5bd55 (patch) | |
tree | c9fdda2bd918ffbef7c51992d7c8ea41ed68dd46 /usr.sbin/bgpd/control.c | |
parent | 7a3af50607a1ab6f9cbd52b9d0e81f24a47ba672 (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/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index c08906e9322..1058aae6a8c 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.37 2004/08/24 12:43:34 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.38 2004/09/16 17:36:29 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -307,6 +307,6 @@ control_imsg_relay(struct imsg *imsg) if ((c = control_connbypid(imsg->hdr.pid)) == NULL) return (0); - return (imsg_compose_pid(&c->ibuf, imsg->hdr.type, imsg->hdr.pid, + return (imsg_compose(&c->ibuf, imsg->hdr.type, 0, imsg->hdr.pid, -1, imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE)); } |