From b120c5f28876fd9efe032a6dbecebfaaff7dfd14 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 25 May 2010 15:23:55 -0400 Subject: torture: use tevent_ functions names instead of the legacy event_ ones --- source4/torture/raw/oplock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/torture/raw/oplock.c') diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c index 01b1dd2b93d..46f2ed32301 100644 --- a/source4/torture/raw/oplock.c +++ b/source4/torture/raw/oplock.c @@ -226,7 +226,7 @@ static void torture_wait_for_oplock_break(struct torture_context *tctx) /* Wait .1 seconds for an oplock break */ ne = tevent_timeval_current_ofs(0, 100000); - if ((te = event_add_timed(tctx->ev, tmp_ctx, ne, timeout_cb, ×up)) + if ((te = tevent_add_timer(tctx->ev, tmp_ctx, ne, timeout_cb, ×up)) == NULL) { torture_comment(tctx, "Failed to wait for an oplock break. " @@ -235,7 +235,7 @@ static void torture_wait_for_oplock_break(struct torture_context *tctx) } while (!timesup && break_info.count < old_count + 1) { - if (event_loop_once(tctx->ev) != 0) { + if (tevent_loop_once(tctx->ev) != 0) { torture_comment(tctx, "Failed to wait for an oplock " "break. test results may not be " "accurate."); @@ -4196,7 +4196,7 @@ bool torture_hold_oplock(struct torture_context *torture, } printf("Waiting for oplock events\n"); - event_loop_wait(ev); + tevent_loop_wait(ev); return true; } -- cgit