diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-14 15:54:26 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-14 08:27:19 +0200 |
commit | f74e7b5606b8c8281acac66973a8f48e6fd85a78 (patch) | |
tree | bc66bea03ab8c2e956211b8f046c577a039ccfff /source4/dsdb/common | |
parent | 9db35c939c57f152f1e42cfcb9ae16cf3fada3f1 (diff) | |
download | samba-f74e7b5606b8c8281acac66973a8f48e6fd85a78.tar.gz samba-f74e7b5606b8c8281acac66973a8f48e6fd85a78.tar.bz2 samba-f74e7b5606b8c8281acac66973a8f48e6fd85a78.zip |
s4-dsdb: Add const
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r-- | source4/dsdb/common/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index e320a41e4b..dca7a4409e 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -2255,14 +2255,14 @@ struct ldb_dn *samdb_dns_domain_to_dn(struct ldb_context *ldb, TALLOC_CTX *mem_c unsigned int i; TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx); const char *binary_encoded; - const char **split_realm; + const char * const *split_realm; struct ldb_dn *dn; if (!tmp_ctx) { return NULL; } - split_realm = (const char **)str_list_make(tmp_ctx, dns_domain, "."); + split_realm = (const char * const *)str_list_make(tmp_ctx, dns_domain, "."); if (!split_realm) { talloc_free(tmp_ctx); return NULL; @@ -3039,11 +3039,11 @@ const char *samdb_cn_to_lDAPDisplayName(TALLOC_CTX *mem_ctx, const char *cn) /* "tolower()" and "toupper()" should also work properly on 0x00 */ tokens[0][0] = tolower(tokens[0][0]); - for (i = 1; i < str_list_length((const char **)tokens); i++) + for (i = 1; i < str_list_length((const char * const *)tokens); i++) tokens[i][0] = toupper(tokens[i][0]); ret = talloc_strdup(mem_ctx, tokens[0]); - for (i = 1; i < str_list_length((const char **)tokens); i++) + for (i = 1; i < str_list_length((const char * const *)tokens); i++) ret = talloc_asprintf_append_buffer(ret, "%s", tokens[i]); talloc_free(tokens); |