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/include | |
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/include')
-rw-r--r-- | source4/lib/ldb/include/ldb.h | 6 | ||||
-rw-r--r-- | source4/lib/ldb/include/ldb_private.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index b3d874e36f..53ae0e4c18 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1641,7 +1641,7 @@ char *ldb_dn_alloc_linearized(TALLOC_CTX *mem_ctx, struct ldb_dn *dn); \param dn The DN to linearize \param mode Style of extended DN to return (0 is HEX representation of binary form, 1 is a string form) */ -char *ldb_dn_get_extended_linearized(void *mem_ctx, struct ldb_dn *dn, int mode); +char *ldb_dn_get_extended_linearized(TALLOC_CTX *mem_ctx, struct ldb_dn *dn, int mode); const struct ldb_val *ldb_dn_get_extended_component(struct ldb_dn *dn, const char *name); int ldb_dn_set_extended_component(struct ldb_dn *dn, const char *name, const struct ldb_val *val); void ldb_dn_extended_filter(struct ldb_dn *dn, const char * const *accept); @@ -1681,7 +1681,7 @@ struct ldb_dn *ldb_dn_new_fmt(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, cons \note The DN will not be parsed at this time. Use ldb_dn_validate to tell if the DN is syntacticly correct */ -struct ldb_dn *ldb_dn_from_ldb_val(void *mem_ctx, struct ldb_context *ldb, const struct ldb_val *strdn); +struct ldb_dn *ldb_dn_from_ldb_val(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, const struct ldb_val *strdn); /** Determine if this DN is syntactically valid @@ -2109,7 +2109,7 @@ unsigned int ldb_get_flags(struct ldb_context *ldb); void ldb_set_flags(struct ldb_context *ldb, unsigned flags); -struct ldb_dn *ldb_dn_binary_from_ldb_val(void *mem_ctx, +struct ldb_dn *ldb_dn_binary_from_ldb_val(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, const struct ldb_val *strdn); diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h index aac21c7fe6..6bbcfa280d 100644 --- a/source4/lib/ldb/include/ldb_private.h +++ b/source4/lib/ldb/include/ldb_private.h @@ -157,7 +157,7 @@ void ldb_subclass_remove(struct ldb_context *ldb, const char *classname); int ldb_subclass_add(struct ldb_context *ldb, const char *classname, const char *subclass); /* The following definitions come from lib/ldb/common/ldb_utf8.c */ -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); void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE *f); @@ -169,7 +169,7 @@ int ldb_load_modules_list(struct ldb_context *ldb, const char **module_list, str int ldb_load_modules(struct ldb_context *ldb, const char *options[]); int ldb_init_module_chain(struct ldb_context *ldb, struct ldb_module *module); -struct ldb_val ldb_binary_decode(void *mem_ctx, const char *str); +struct ldb_val ldb_binary_decode(TALLOC_CTX *mem_ctx, const char *str); /* The following definitions come from lib/ldb/common/ldb_options.c */ |