r18325: more warnings and one compile error on aix fixed
authorAndrew Tridgell <tridge@samba.org>
Sun, 10 Sep 2006 10:43:31 +0000 (10:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:09 +0000 (14:18 -0500)
source/torture/libnet/libnet_domain.c
source/torture/libnet/libnet_user.c
source/torture/rpc/samba3rpc.c
source/torture/smb2/setinfo.c

index 48bbd1eb2bd5a2dd9bff66ed8dca483808950800..24431de54a821d805503cf3d6edaa5e29a975679 100644 (file)
@@ -180,7 +180,7 @@ BOOL torture_domain_close_lsa(struct torture_context *torture)
 {
        BOOL ret = True;
        NTSTATUS status;
-       TALLOC_CTX *mem_ctx;
+       TALLOC_CTX *mem_ctx=NULL;
        struct libnet_context *ctx;
        struct lsa_String domain_name;
        struct dcerpc_binding *binding;
@@ -254,7 +254,7 @@ BOOL torture_domain_open_samr(struct torture_context *torture)
        NTSTATUS status;
        const char *binding;
        struct libnet_context *ctx;
-       struct event_context *evt_ctx;
+       struct event_context *evt_ctx=NULL;
        TALLOC_CTX *mem_ctx;
        struct policy_handle domain_handle, handle;
        struct lsa_String name;
@@ -312,7 +312,7 @@ BOOL torture_domain_close_samr(struct torture_context *torture)
 {
        BOOL ret = True;
        NTSTATUS status;
-       TALLOC_CTX *mem_ctx;
+       TALLOC_CTX *mem_ctx=NULL;
        struct libnet_context *ctx;
        struct lsa_String domain_name;
        struct dcerpc_binding *binding;
index 9fc61af2e04cf195903ffe57b4312bf3be69776d..8924e15a4b4ac585641e2a2958f64b6623e13c01 100644 (file)
@@ -524,7 +524,7 @@ BOOL torture_userinfo_api(struct torture_context *torture)
        const char *binding;
        BOOL ret = True;
        NTSTATUS status;
-       TALLOC_CTX *mem_ctx, *prep_mem_ctx;
+       TALLOC_CTX *mem_ctx=NULL, *prep_mem_ctx;
        struct libnet_context *ctx;
        struct dcerpc_pipe *p;
        struct policy_handle h;
index d0b9a2592033d19d663082d6aee283578a161739..adebce34efe4686150fe172b1202f80ea84660e4 100644 (file)
@@ -1458,7 +1458,7 @@ static struct dom_sid *name2sid(TALLOC_CTX *mem_ctx,
        if (!NT_STATUS_IS_OK(status)) {
                printf("LookupNames failed - %s\n", nt_errstr(status));
                talloc_free(tmp_ctx);
-               return False;
+               return NULL;
        }
 
        result = dom_sid_add_rid(mem_ctx, l.out.domains->domains[0].sid,
index 08cce7693af30f14f49a667745605ff1e625554a..ee09c7351cbe6fce55b24a2d66d5f0a34754c34e 100644 (file)
@@ -50,7 +50,7 @@ BOOL torture_smb2_setinfo(struct torture_context *torture)
        struct security_ace ace;
        struct security_descriptor *sd;
        struct dom_sid *test_sid;
-       NTSTATUS status, status2;
+       NTSTATUS status, status2=NT_STATUS_OK;
        const char *call_name;
        time_t basetime = (time(NULL) - 86400) & ~1;
        int n = time(NULL) % 100;