summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relay.c
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2009-06-05 00:20:51 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2009-06-05 00:20:51 +0000
commit948db6985e3ef14f4aeac282d48738a3cd64c599 (patch)
treef648b16b135667e193629bdb7bd4dc423997f504 /usr.sbin/relayd/relay.c
parente7c72fa7318f594e47f10b4196cc7c769a51513a (diff)
some KNF cleanup following the last sed.
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r--usr.sbin/relayd/relay.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 769af1fc32b..12366c63a52 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.113 2009/06/05 00:04:01 pyr Exp $ */
+/* $OpenBSD: relay.c,v 1.114 2009/06/05 00:20:50 pyr Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -2220,7 +2220,8 @@ relay_bindanyreq(struct session *con, in_port_t port, int proto)
bnd.bnd_port = port;
bnd.bnd_proto = proto;
bcopy(&con->se_in.ss, &bnd.bnd_ss, sizeof(bnd.bnd_ss));
- imsg_compose_event(ibuf_main, IMSG_BINDANY, 0, 0, -1, &bnd, sizeof(bnd));
+ imsg_compose_event(ibuf_main, IMSG_BINDANY,
+ 0, 0, -1, &bnd, sizeof(bnd));
/* Schedule timeout */
evtimer_set(&con->se_ev, relay_bindany, con);
@@ -2498,9 +2499,11 @@ relay_dispatch_pfe(int fd, short event, void *ptr)
TAILQ_FOREACH(rlay, env->sc_relays, rl_entry)
SPLAY_FOREACH(con, session_tree,
&rlay->rl_sessions)
- imsg_compose_event(ibuf, IMSG_CTL_SESSION,
+ imsg_compose_event(ibuf,
+ IMSG_CTL_SESSION,
0, 0, -1, con, sizeof(*con));
- imsg_compose_event(ibuf, IMSG_CTL_END, 0, 0, -1, NULL, 0);
+ imsg_compose_event(ibuf, IMSG_CTL_END,
+ 0, 0, -1, NULL, 0);
break;
default:
log_debug("relay_dispatch_msg: unexpected imsg %d",