From 4ad08968f634b071f5ed84164700d4c5ffadea24 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Jan 2005 12:24:36 +0000 Subject: r4945: the te element isn't needed any more In general, now that events are children of the structure they are handling events for, the caller only needs to keep the event handle around if it plans on changing the event flags later (This used to be commit 8c8955155476827408c107af38089c8320631526) --- source4/rpc_server/echo/rpc_echo.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source4/rpc_server/echo/rpc_echo.c') diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c index 88fd7fb12d..b793cd4da7 100644 --- a/source4/rpc_server/echo/rpc_echo.c +++ b/source4/rpc_server/echo/rpc_echo.c @@ -117,7 +117,6 @@ static NTSTATUS echo_TestEnum(struct dcesrv_call_state *dce_call, TALLOC_CTX *me struct echo_TestSleep_private { struct dcesrv_call_state *dce_call; struct echo_TestSleep *r; - struct timed_event *te; }; static void echo_TestSleep_handler(struct event_context *ev, struct timed_event *te, struct timeval t) @@ -159,10 +158,7 @@ static long echo_TestSleep(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_c te.private = p; te.next_event = timeval_add(&dce_call->time, r->in.seconds, 0); - p->te = event_add_timed(dce_call->event_ctx, &te, p); - if (!p->te) { - return 0; - } + event_add_timed(dce_call->event_ctx, &te, p); dce_call->state_flags |= DCESRV_CALL_STATE_FLAG_ASYNC; return 0; -- cgit