summaryrefslogtreecommitdiff
path: root/source4/param/secrets.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-06 14:52:38 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-06 14:54:11 +0200
commit91ce32b4c428d2fc514eef150c625de6cb91345b (patch)
treecb36f0a199e2e26269791e4f6673610488557c57 /source4/param/secrets.c
parent2859b9df99bf2b49e90feca3ad7b7de6be816fe7 (diff)
downloadsamba-91ce32b4c428d2fc514eef150c625de6cb91345b.tar.gz
samba-91ce32b4c428d2fc514eef150c625de6cb91345b.tar.bz2
samba-91ce32b4c428d2fc514eef150c625de6cb91345b.zip
s4:param/secrets.c - add some "char *" casts
Also this quiets some warnings.
Diffstat (limited to 'source4/param/secrets.c')
-rw-r--r--source4/param/secrets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/param/secrets.c b/source4/param/secrets.c
index 407e27ff67..2962bcdc1f 100644
--- a/source4/param/secrets.c
+++ b/source4/param/secrets.c
@@ -166,14 +166,14 @@ struct dom_sid *secrets_get_domain_sid(TALLOC_CTX *mem_ctx,
if (ldb_ret != LDB_SUCCESS) {
*errstring = talloc_asprintf(mem_ctx, "Failed to find record for %s in %s: %s: %s",
- domain, ldb_get_opaque(ldb, "ldb_url"),
+ domain, (char *) ldb_get_opaque(ldb, "ldb_url"),
ldb_strerror(ldb_ret), ldb_errstring(ldb));
return NULL;
}
v = ldb_msg_find_ldb_val(msg, "objectSid");
if (v == NULL) {
*errstring = talloc_asprintf(mem_ctx, "Failed to find a SID on record for %s in %s",
- domain, ldb_get_opaque(ldb, "ldb_url"));
+ domain, (char *) ldb_get_opaque(ldb, "ldb_url"));
return NULL;
}
result = talloc(mem_ctx, struct dom_sid);
@@ -186,7 +186,7 @@ struct dom_sid *secrets_get_domain_sid(TALLOC_CTX *mem_ctx,
(ndr_pull_flags_fn_t)ndr_pull_dom_sid);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
*errstring = talloc_asprintf(mem_ctx, "Failed to parse SID on record for %s in %s",
- domain, ldb_get_opaque(ldb, "ldb_url"));
+ domain, (char *) ldb_get_opaque(ldb, "ldb_url"));
talloc_free(result);
talloc_free(ldb);
return NULL;