From 51aced3dc86c42e98d9b59db73331a5231854e1c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Aug 2007 01:25:15 +0000 Subject: r24587: the elements of the array are not talloc pointers (This used to be commit 2ebf00dc42edfc3474dc88ef2e560d4b1b534efa) --- source4/torture/raw/lockbench.c | 3 +-- source4/torture/raw/openbench.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index 6908fbeef9..ce90944b1d 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -251,8 +251,7 @@ static void lock_completion(struct smbcli_request *req) static void echo_completion(struct smbcli_request *req) { - struct benchlock_state *state = talloc_get_type(req->async.private, - struct benchlock_state); + struct benchlock_state *state = (struct benchlock_state *)req->async.private; NTSTATUS status = smbcli_request_simple_recv(req); if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) || NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) { diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c index 10439e76f0..ce00ca6c5f 100644 --- a/source4/torture/raw/openbench.c +++ b/source4/torture/raw/openbench.c @@ -285,8 +285,7 @@ static void close_completed(struct smbcli_request *req) static void echo_completion(struct smbcli_request *req) { - struct benchopen_state *state = talloc_get_type(req->async.private, - struct benchopen_state); + struct benchlock_state *state = (struct benchlock_state *)req->async.private; NTSTATUS status = smbcli_request_simple_recv(req); if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) || NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) { -- cgit