summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-23 12:24:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:08 -0500
commit4ad08968f634b071f5ed84164700d4c5ffadea24 (patch)
tree2ef5668a5dbc63f6b72ee7cc7f652b9686914065 /source4/rpc_server
parent6c14b0133dede38294a812be7f5f5bd5ec3d498b (diff)
downloadsamba-4ad08968f634b071f5ed84164700d4c5ffadea24.tar.gz
samba-4ad08968f634b071f5ed84164700d4c5ffadea24.tar.bz2
samba-4ad08968f634b071f5ed84164700d4c5ffadea24.zip
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)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/echo/rpc_echo.c6
1 files changed, 1 insertions, 5 deletions
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;