summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-08-01 00:34:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:14 -0500
commit5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d (patch)
treeb878d0d6b750a25f3b3b5eab12acdf32697aea44 /source4/torture/rpc
parent555eee1456737abacbe59db1d1bb82370507f031 (diff)
downloadsamba-5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d.tar.gz
samba-5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d.tar.bz2
samba-5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d.zip
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)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/echo.c2
1 files changed, 1 insertions, 1 deletions
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",