diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-30 11:55:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:35:01 -0500 |
commit | b674411eb46c9e45f2740a1f9bac365e9a347e9c (patch) | |
tree | 02cac6467a11c9c3600295d61f57d6259cc6580b /source4/torture/rpc | |
parent | b75ca9aa2cf9a932547228458e0b3ad8e1053826 (diff) | |
download | samba-b674411eb46c9e45f2740a1f9bac365e9a347e9c.tar.gz samba-b674411eb46c9e45f2740a1f9bac365e9a347e9c.tar.bz2 samba-b674411eb46c9e45f2740a1f9bac365e9a347e9c.zip |
r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652cb2de7a8037a7a4c2a204b50aee2b1)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/samsync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index b15ee98200..9cd30ef019 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -286,7 +286,7 @@ static BOOL samsync_handle_domain(TALLOC_CTX *mem_ctx, struct samsync_state *sam case SAM_DATABASE_DOMAIN: break; case SAM_DATABASE_BUILTIN: - if (StrCaseCmp("BUILTIN", domain->domain_name.string) != 0) { + if (strcasecmp_m("BUILTIN", domain->domain_name.string) != 0) { printf("BUILTIN domain has different name: %s\n", domain->domain_name.string); } break; @@ -300,7 +300,7 @@ static BOOL samsync_handle_domain(TALLOC_CTX *mem_ctx, struct samsync_state *sam samsync_state->domain_name[database_id] = talloc_reference(samsync_state, domain->domain_name.string); } else { - if (StrCaseCmp(samsync_state->domain_name[database_id], domain->domain_name.string) != 0) { + if (strcasecmp_m(samsync_state->domain_name[database_id], domain->domain_name.string) != 0) { printf("Domain has name varies!: %s != %s\n", samsync_state->domain_name[database_id], domain->domain_name.string); return False; @@ -371,7 +371,7 @@ static BOOL samsync_handle_policy(TALLOC_CTX *mem_ctx, struct samsync_state *sam samsync_state->domain_name[SAM_DATABASE_DOMAIN] = talloc_reference(samsync_state, policy->primary_domain_name.string); } else { - if (StrCaseCmp(samsync_state->domain_name[SAM_DATABASE_DOMAIN], policy->primary_domain_name.string) != 0) { + if (strcasecmp_m(samsync_state->domain_name[SAM_DATABASE_DOMAIN], policy->primary_domain_name.string) != 0) { printf("PRIMARY domain has name varies between DOMAIN and POLICY!: %s != %s\n", samsync_state->domain_name[SAM_DATABASE_DOMAIN], policy->primary_domain_name.string); return False; @@ -1194,7 +1194,7 @@ static BOOL test_DatabaseSync(struct samsync_state *samsync_state, for (t=samsync_state->trusted_domains; t; t=t->next) { char *secret_name = talloc_asprintf(trustdom_ctx, "G$$%s", t->name); for (s=samsync_state->secrets; s; s=s->next) { - if (StrCaseCmp(s->name, secret_name) == 0) { + if (strcasecmp_m(s->name, secret_name) == 0) { NTSTATUS nt_status; struct samr_Password nt_hash; mdfour(nt_hash.hash, s->secret.data, s->secret.length); |