summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-07-08 12:06:39 +0200
committerStefan Metzmacher <metze@samba.org>2010-07-09 09:27:12 +0200
commitad173331148a9fdd793cc5fa4776bdfd53bb4727 (patch)
treed8634d6ed26a8ec9246ed7be0f6f6ba31125d284 /source4/dsdb/samdb
parent217177a4df55439cec1d2563ab1af8fbdfe4a991 (diff)
downloadsamba-ad173331148a9fdd793cc5fa4776bdfd53bb4727.tar.gz
samba-ad173331148a9fdd793cc5fa4776bdfd53bb4727.tar.bz2
samba-ad173331148a9fdd793cc5fa4776bdfd53bb4727.zip
s4:dsdb:ridalloc.c: fix C++ warning
metze
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/ridalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/ridalloc.c b/source4/dsdb/samdb/ldb_modules/ridalloc.c
index 91d48ba47b..1b56512f96 100644
--- a/source4/dsdb/samdb/ldb_modules/ridalloc.c
+++ b/source4/dsdb/samdb/ldb_modules/ridalloc.c
@@ -68,7 +68,8 @@ static void ridalloc_poke_rid_manager(struct ldb_module *module)
struct messaging_context *msg;
struct server_id *server;
struct ldb_context *ldb = ldb_module_get_ctx(module);
- struct loadparm_context *lp_ctx = ldb_get_opaque(ldb, "loadparm");
+ struct loadparm_context *lp_ctx =
+ (struct loadparm_context *)ldb_get_opaque(ldb, "loadparm");
TALLOC_CTX *tmp_ctx = talloc_new(module);
msg = messaging_client_init(tmp_ctx, lp_messaging_path(tmp_ctx, lp_ctx),