s4:torture/smb2: fix compiler warnings and bugs
authorStefan Metzmacher <metze@samba.org>
Fri, 27 Mar 2009 12:25:26 +0000 (13:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 27 Mar 2009 12:26:50 +0000 (13:26 +0100)
metze

source4/torture/smb2/durable_open.c

index f34dfc4ac1f586767fd905a4b9d2e7fbed7604f3..9cc25e3408f35ba561b4947a2f4d80aa72ab8ee8 100644 (file)
@@ -190,7 +190,7 @@ bool test_durable_open_oplock(struct torture_context *tctx,
                              struct smb2_tree *tree2)
 {
        TALLOC_CTX *mem_ctx = talloc_new(tctx);
-       struct smb2_create io1, io2, io3;
+       struct smb2_create io1, io2;
        struct smb2_handle h1;
        NTSTATUS status;
        const char *fname = "durable_open_oplock.dat";
@@ -297,4 +297,6 @@ struct torture_suite *torture_smb2_durable_open_init(void)
        torture_suite_add_2smb2_test(suite, "OPLOCK", test_durable_open_oplock);
 
        suite->description = talloc_strdup(suite, "SMB2-DURABLE-OPEN tests");
+
+       return suite;
 }