From 5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 1 Aug 2005 00:34:39 +0000 Subject: r8875: Rename timeval_diff to timeval_until and revert the arguments. timeval_diff is not strictly a subtraction function, there can't be negative timevals. Volker (This used to be commit 525d75dd24f6a8810f1ed2043d170c70b060f1f0) --- source4/torture/rpc/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index a579190f47..4e0cf90e42 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -254,7 +254,7 @@ static BOOL test_sleep(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) total_done++; done[i] = True; rcv[i] = timeval_current(); - diff[i] = timeval_diff(&rcv[i], &snd[i]); + diff[i] = timeval_until(&snd[i], &rcv[i]); status = dcerpc_ndr_request_recv(req[i]); if (!NT_STATUS_IS_OK(status)) { printf("TestSleep(%d) failed - %s\n", -- cgit