From dcc4081f75f0d0c51878385477f7738f49a761dd Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 23 Dec 2008 23:22:57 +0100 Subject: Fix more compiler warnings. --- source4/torture/rpc/netlogon.c | 1 - source4/torture/rpc/samr.c | 2 +- source4/torture/rpc/schannel.c | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index c7518d15a0..785b43d7a1 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -148,7 +148,6 @@ bool test_SetupCredentials2(struct dcerpc_pipe *p, struct torture_context *tctx, struct creds_CredentialState *creds; const struct samr_Password *mach_password; const char *machine_name; - const char *plain_pass; mach_password = cli_credentials_get_nt_hash(machine_credentials, tctx); machine_name = cli_credentials_get_workstation(machine_credentials); diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 2912628744..821cac341e 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -1087,7 +1087,7 @@ static bool test_SetUserPass_level_ex(struct dcerpc_pipe *p, } if (fields_present & SAMR_FIELD_COMMENT) { - comment = talloc_asprintf(tctx, "comment: %d\n", time(NULL)); + comment = talloc_asprintf(tctx, "comment: %ld\n", time(NULL)); } ZERO_STRUCT(u); diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c index 451990a71b..bc3cbeac3b 100644 --- a/source4/torture/rpc/schannel.c +++ b/source4/torture/rpc/schannel.c @@ -129,7 +129,7 @@ static bool test_samr_ops(struct torture_context *tctx, NTSTATUS status; struct samr_GetDomPwInfo r; struct samr_PwInfo info; - struct samr_Connect connect; + struct samr_Connect connect_r; struct samr_OpenDomain opendom; int i; struct lsa_String name; @@ -140,13 +140,13 @@ static bool test_samr_ops(struct torture_context *tctx, r.in.domain_name = &name; r.out.info = &info; - connect.in.system_name = 0; - connect.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; - connect.out.connect_handle = &handle; + connect_r.in.system_name = 0; + connect_r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; + connect_r.out.connect_handle = &handle; printf("Testing Connect and OpenDomain on BUILTIN\n"); - status = dcerpc_samr_Connect(p, tctx, &connect); + status = dcerpc_samr_Connect(p, tctx, &connect_r); if (!NT_STATUS_IS_OK(status)) { if (NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) { printf("Connect failed (expected, schannel mapped to anonymous): %s\n", -- cgit