svn commit: samba r4945 - in branches/SAMBA_4_0/source/rpc_server/echo: .

tridge at samba.org tridge at samba.org
Sun Jan 23 12:24:36 GMT 2005


Author: tridge
Date: 2005-01-23 12:24:36 +0000 (Sun, 23 Jan 2005)
New Revision: 4945

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4945

Log:
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



Modified:
   branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c	2005-01-23 12:17:45 UTC (rev 4944)
+++ branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c	2005-01-23 12:24:36 UTC (rev 4945)
@@ -117,7 +117,6 @@
 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 @@
 	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;



More information about the samba-cvs mailing list