summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-22 00:07:55 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-24 18:23:15 +0200
commitedd6630a969fcd6ee2f4e69ebf7576926f040e48 (patch)
tree36a42250457a44f256e624709a1049b66a912e16 /src/db
parent95f5e7963a36b7b68859ce91ae4b232088bbaa09 (diff)
downloadsssd-edd6630a969fcd6ee2f4e69ebf7576926f040e48.tar.gz
sssd-edd6630a969fcd6ee2f4e69ebf7576926f040e48.tar.bz2
sssd-edd6630a969fcd6ee2f4e69ebf7576926f040e48.zip
DB: Use TALLOC_CTX for talloc context
A couple of sysdb functions used "void *" in place of a TALLOC_CTX.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index b53b9880..0ce6beaa 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -316,22 +316,22 @@ errno_t sysdb_msg2attrs(TALLOC_CTX *mem_ctx, size_t count,
int sysdb_error_to_errno(int ldberr);
/* DNs related helper functions */
-errno_t sysdb_get_rdn(struct sysdb_ctx *sysdb, void *mem_ctx,
+errno_t sysdb_get_rdn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *_dn, char **_name, char **_val);
-struct ldb_dn *sysdb_user_dn(struct sysdb_ctx *sysdb, void *mem_ctx,
+struct ldb_dn *sysdb_user_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *name);
-struct ldb_dn *sysdb_group_dn(struct sysdb_ctx *sysdb, void *mem_ctx,
+struct ldb_dn *sysdb_group_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *name);
-struct ldb_dn *sysdb_netgroup_dn(struct sysdb_ctx *sysdb, void *mem_ctx,
+struct ldb_dn *sysdb_netgroup_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *name);
-struct ldb_dn *sysdb_netgroup_base_dn(struct sysdb_ctx *sysdb, void *mem_ctx);
-errno_t sysdb_group_dn_name(struct sysdb_ctx *sysdb, void *mem_ctx,
+struct ldb_dn *sysdb_netgroup_base_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx);
+errno_t sysdb_group_dn_name(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *dn_str, char **name);
-struct ldb_dn *sysdb_domain_dn(struct sysdb_ctx *sysdb, void *mem_ctx);
-struct ldb_dn *sysdb_custom_dn(struct sysdb_ctx *sysdb, void *mem_ctx,
+struct ldb_dn *sysdb_domain_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx);
+struct ldb_dn *sysdb_custom_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *object_name,
const char *subtree_name);
-struct ldb_dn *sysdb_custom_subtree_dn(struct sysdb_ctx *sysdb, void *mem_ctx,
+struct ldb_dn *sysdb_custom_subtree_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
const char *subtree_name);
char *sysdb_user_strdn(TALLOC_CTX *mem_ctx,
@@ -830,7 +830,7 @@ errno_t sysdb_netgr_to_entries(TALLOC_CTX *mem_ctx,
struct ldb_result *res,
struct sysdb_netgroup_ctx ***entries);
-errno_t sysdb_dn_sanitize(void *mem_ctx, const char *input,
+errno_t sysdb_dn_sanitize(TALLOC_CTX *mem_ctx, const char *input,
char **sanitized);
errno_t sysdb_get_bool(struct sysdb_ctx *sysdb,