1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

r15132: Fix some shadowed variable warnings

(This used to be commit 97d2c20b0b37ac07b6e37e9614ff41ab7e131c98)
This commit is contained in:
Volker Lendecke 2006-04-19 13:14:14 +00:00 committed by Gerald (Jerry) Carter
parent 0498f3b889
commit 396b377971
2 changed files with 28 additions and 28 deletions

View File

@ -774,7 +774,7 @@ static void wcache_save_lockout_policy(struct winbindd_domain *domain, NTSTATUS
centry_free(centry);
}
static void wcache_save_password_policy(struct winbindd_domain *domain, NTSTATUS status, SAM_UNK_INFO_1 *password_policy)
static void wcache_save_password_policy(struct winbindd_domain *domain, NTSTATUS status, SAM_UNK_INFO_1 *policy)
{
struct cache_entry *centry;
@ -782,11 +782,11 @@ static void wcache_save_password_policy(struct winbindd_domain *domain, NTSTATUS
if (!centry)
return;
centry_put_uint16(centry, password_policy->min_length_password);
centry_put_uint16(centry, password_policy->password_history);
centry_put_uint32(centry, password_policy->password_properties);
centry_put_nttime(centry, password_policy->expire);
centry_put_nttime(centry, password_policy->min_passwordage);
centry_put_uint16(centry, policy->min_length_password);
centry_put_uint16(centry, policy->password_history);
centry_put_uint32(centry, policy->password_properties);
centry_put_nttime(centry, policy->expire);
centry_put_nttime(centry, policy->min_passwordage);
centry_end(centry, "PWD_POL/%s", domain->name);
@ -1735,7 +1735,7 @@ skip_save:
/* get lockout policy */
static NTSTATUS lockout_policy(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
SAM_UNK_INFO_12 *lockout_policy){
SAM_UNK_INFO_12 *policy){
struct winbind_cache *cache = get_cache(domain);
struct cache_entry *centry = NULL;
NTSTATUS status;
@ -1748,9 +1748,9 @@ static NTSTATUS lockout_policy(struct winbindd_domain *domain,
if (!centry)
goto do_query;
lockout_policy->duration = centry_nttime(centry);
lockout_policy->reset_count = centry_nttime(centry);
lockout_policy->bad_attempt_lockout = centry_uint16(centry);
policy->duration = centry_nttime(centry);
policy->reset_count = centry_nttime(centry);
policy->bad_attempt_lockout = centry_uint16(centry);
status = centry->status;
@ -1761,7 +1761,7 @@ static NTSTATUS lockout_policy(struct winbindd_domain *domain,
return status;
do_query:
ZERO_STRUCTP(lockout_policy);
ZERO_STRUCTP(policy);
/* Return status value returned by seq number check */
@ -1771,11 +1771,11 @@ do_query:
DEBUG(10,("lockout_policy: [Cached] - doing backend query for info for domain %s\n",
domain->name ));
status = domain->backend->lockout_policy(domain, mem_ctx, lockout_policy);
status = domain->backend->lockout_policy(domain, mem_ctx, policy);
/* and save it */
refresh_sequence_number(domain, False);
wcache_save_lockout_policy(domain, status, lockout_policy);
wcache_save_lockout_policy(domain, status, policy);
return status;
}
@ -1783,7 +1783,7 @@ do_query:
/* get password policy */
static NTSTATUS password_policy(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
SAM_UNK_INFO_1 *password_policy)
SAM_UNK_INFO_1 *policy)
{
struct winbind_cache *cache = get_cache(domain);
struct cache_entry *centry = NULL;
@ -1797,11 +1797,11 @@ static NTSTATUS password_policy(struct winbindd_domain *domain,
if (!centry)
goto do_query;
password_policy->min_length_password = centry_uint16(centry);
password_policy->password_history = centry_uint16(centry);
password_policy->password_properties = centry_uint32(centry);
password_policy->expire = centry_nttime(centry);
password_policy->min_passwordage = centry_nttime(centry);
policy->min_length_password = centry_uint16(centry);
policy->password_history = centry_uint16(centry);
policy->password_properties = centry_uint32(centry);
policy->expire = centry_nttime(centry);
policy->min_passwordage = centry_nttime(centry);
status = centry->status;
@ -1812,7 +1812,7 @@ static NTSTATUS password_policy(struct winbindd_domain *domain,
return status;
do_query:
ZERO_STRUCTP(password_policy);
ZERO_STRUCTP(policy);
/* Return status value returned by seq number check */
@ -1822,11 +1822,11 @@ do_query:
DEBUG(10,("password_policy: [Cached] - doing backend query for info for domain %s\n",
domain->name ));
status = domain->backend->password_policy(domain, mem_ctx, password_policy);
status = domain->backend->password_policy(domain, mem_ctx, policy);
/* and save it */
refresh_sequence_number(domain, False);
wcache_save_password_policy(domain, status, password_policy);
wcache_save_password_policy(domain, status, policy);
return status;
}

View File

@ -223,14 +223,14 @@ static NTSTATUS sequence_number(struct winbindd_domain *domain, uint32 *seq)
/* find the lockout policy of a domain */
static NTSTATUS lockout_policy(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
SAM_UNK_INFO_12 *lockout_policy)
SAM_UNK_INFO_12 *policy)
{
NTSTATUS result;
result = msrpc_methods.lockout_policy(domain, mem_ctx, lockout_policy);
result = msrpc_methods.lockout_policy(domain, mem_ctx, policy);
if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL))
result = msrpc_methods.lockout_policy(domain, mem_ctx, lockout_policy);
result = msrpc_methods.lockout_policy(domain, mem_ctx, policy);
return result;
}
@ -238,14 +238,14 @@ static NTSTATUS lockout_policy(struct winbindd_domain *domain,
/* find the password policy of a domain */
static NTSTATUS password_policy(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
SAM_UNK_INFO_1 *password_policy)
SAM_UNK_INFO_1 *policy)
{
NTSTATUS result;
result = msrpc_methods.password_policy(domain, mem_ctx, password_policy);
result = msrpc_methods.password_policy(domain, mem_ctx, policy);
if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL))
result = msrpc_methods.password_policy(domain, mem_ctx, password_policy);
result = msrpc_methods.password_policy(domain, mem_ctx, policy);
return result;
}