diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-07-13 02:37:58 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-07-29 00:53:49 +0300 |
commit | 88f17981001c509c4844304b5a120540ae2963f6 (patch) | |
tree | 4f44db9128133816c04ef1f52c85baee08cd3143 /source4/lib/ldb/common/ldb_utf8.c | |
parent | e8ac4a8b82798ef0691d384f59d880dc38b56592 (diff) | |
download | samba-88f17981001c509c4844304b5a120540ae2963f6.tar.gz samba-88f17981001c509c4844304b5a120540ae2963f6.tar.bz2 samba-88f17981001c509c4844304b5a120540ae2963f6.zip |
s4-ldb: use TALLOC_CTX type instead of 'void'
Diffstat (limited to 'source4/lib/ldb/common/ldb_utf8.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_utf8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_utf8.c b/source4/lib/ldb/common/ldb_utf8.c index 73ae71bb9c..55d8f905d3 100644 --- a/source4/lib/ldb/common/ldb_utf8.c +++ b/source4/lib/ldb/common/ldb_utf8.c @@ -53,7 +53,7 @@ void ldb_set_utf8_fns(struct ldb_context *ldb, a simple case folding function NOTE: does not handle UTF8 */ -char *ldb_casefold_default(void *context, void *mem_ctx, const char *s, size_t n) +char *ldb_casefold_default(void *context, TALLOC_CTX *mem_ctx, const char *s, size_t n) { size_t i; char *ret = talloc_strndup(mem_ctx, s, n); @@ -72,7 +72,7 @@ void ldb_set_utf8_default(struct ldb_context *ldb) ldb_set_utf8_fns(ldb, NULL, ldb_casefold_default); } -char *ldb_casefold(struct ldb_context *ldb, void *mem_ctx, const char *s, size_t n) +char *ldb_casefold(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const char *s, size_t n) { return ldb->utf8_fns.casefold(ldb->utf8_fns.context, mem_ctx, s, n); } @@ -109,7 +109,7 @@ int ldb_valid_attr_name(const char *s) return 1; } -char *ldb_attr_casefold(void *mem_ctx, const char *s) +char *ldb_attr_casefold(TALLOC_CTX *mem_ctx, const char *s) { size_t i; char *ret = talloc_strdup(mem_ctx, s); |