From 60b303d4c24b333c9b397f86b9381d798b1b6874 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 26 Jun 2008 23:30:42 +0200 Subject: dsdb: eliminate disards qualifyer compile warning. Michael (This used to be commit 3b0917dbc5399dc6835b523d762b244bdcf45b79) --- source4/dsdb/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/common') diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index b98112304c..a571ae1f79 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1040,7 +1040,7 @@ const struct dom_sid *samdb_domain_sid(struct ldb_context *ldb) } /* cache the domain_sid in the ldb */ - if (ldb_set_opaque(ldb, "cache.domain_sid", domain_sid) != LDB_SUCCESS) { + if (ldb_set_opaque(ldb, "cache.domain_sid", discard_const_p(struct dom_sid, domain_sid)) != LDB_SUCCESS) { goto failed; } -- cgit