r24587: the elements of the array are not talloc pointers
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Aug 2007 01:25:15 +0000 (01:25 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:21 +0000 (15:02 -0500)
source/torture/raw/lockbench.c
source/torture/raw/openbench.c

index 6908fbeef93994a5137219b16b0ff78d851af931..ce90944b1d2b63039996136b873b9ad6da4ad502 100644 (file)
@@ -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)) {
index 10439e76f0ff29a38abe77ab296ab7214bba9ee1..ce00ca6c5fd9a6a6fb816add828aa56348d60262 100644 (file)
@@ -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)) {