From cb3be02978ee27e7635b80c358e5bb34d5685af1 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Wed, 30 May 2007 00:51:22 +0000 Subject: give ibuf to event_set --- usr.sbin/hoststated/hoststated.c | 8 ++++---- usr.sbin/relayd/relayd.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/hoststated/hoststated.c b/usr.sbin/hoststated/hoststated.c index 2b90b833206..a13f69927b9 100644 --- a/usr.sbin/hoststated/hoststated.c +++ b/usr.sbin/hoststated/hoststated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hoststated.c,v 1.32 2007/05/30 00:19:25 pyr Exp $ */ +/* $OpenBSD: hoststated.c,v 1.33 2007/05/30 00:51:21 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -254,18 +254,18 @@ main(int argc, char *argv[]) imsg_init(ibuf, pipe_parent2relay[c][1], main_dispatch_relay); ibuf->events = EV_READ; event_set(&ibuf->ev, ibuf->fd, ibuf->events, - ibuf->handler, env); + ibuf->handler, ibuf); event_add(&ibuf->ev, NULL); } ibuf_pfe->events = EV_READ; event_set(&ibuf_pfe->ev, ibuf_pfe->fd, ibuf_pfe->events, - ibuf_pfe->handler, env); + ibuf_pfe->handler, ibuf_pfe); event_add(&ibuf_pfe->ev, NULL); ibuf_hce->events = EV_READ; event_set(&ibuf_hce->ev, ibuf_hce->fd, ibuf_hce->events, - ibuf_hce->handler, env); + ibuf_hce->handler, ibuf_hce); event_add(&ibuf_hce->ev, NULL); if (env->flags & F_DEMOTE) diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c index 0e5837d8879..ea980d89f73 100644 --- a/usr.sbin/relayd/relayd.c +++ b/usr.sbin/relayd/relayd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.c,v 1.32 2007/05/30 00:19:25 pyr Exp $ */ +/* $OpenBSD: relayd.c,v 1.33 2007/05/30 00:51:21 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -254,18 +254,18 @@ main(int argc, char *argv[]) imsg_init(ibuf, pipe_parent2relay[c][1], main_dispatch_relay); ibuf->events = EV_READ; event_set(&ibuf->ev, ibuf->fd, ibuf->events, - ibuf->handler, env); + ibuf->handler, ibuf); event_add(&ibuf->ev, NULL); } ibuf_pfe->events = EV_READ; event_set(&ibuf_pfe->ev, ibuf_pfe->fd, ibuf_pfe->events, - ibuf_pfe->handler, env); + ibuf_pfe->handler, ibuf_pfe); event_add(&ibuf_pfe->ev, NULL); ibuf_hce->events = EV_READ; event_set(&ibuf_hce->ev, ibuf_hce->fd, ibuf_hce->events, - ibuf_hce->handler, env); + ibuf_hce->handler, ibuf_hce); event_add(&ibuf_hce->ev, NULL); if (env->flags & F_DEMOTE) -- cgit v1.2.3