summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-08-21 01:25:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:21 -0500
commit51aced3dc86c42e98d9b59db73331a5231854e1c (patch)
tree56e30493bda86957f1d65904a9a29d2a29c042a2 /source4
parent2d6e6ebddc974b01181640ae93dc408fe351cf4b (diff)
downloadsamba-51aced3dc86c42e98d9b59db73331a5231854e1c.tar.gz
samba-51aced3dc86c42e98d9b59db73331a5231854e1c.tar.bz2
samba-51aced3dc86c42e98d9b59db73331a5231854e1c.zip
r24587: the elements of the array are not talloc pointers
(This used to be commit 2ebf00dc42edfc3474dc88ef2e560d4b1b534efa)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/lockbench.c3
-rw-r--r--source4/torture/raw/openbench.c3
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)) {