From eddf0d0fe277cc763bbe0bb4706ab1a4aebf8151 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 22 Dec 2011 11:50:49 +0100 Subject: ldb:ldb_tdb.c - fix warnings in "ltdb_init_rootdse" We should ignore the LDB result. Signed-off-by: Stefan Metzmacher --- lib/ldb/ldb_tdb/ldb_tdb.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/ldb/ldb_tdb/ldb_tdb.c') diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c index a85e41d987..ebde8a34f9 100644 --- a/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/lib/ldb/ldb_tdb/ldb_tdb.c @@ -1418,14 +1418,8 @@ static int ltdb_handle_request(struct ldb_module *module, static int ltdb_init_rootdse(struct ldb_module *module) { - struct ldb_context *ldb; - int ret; - - ldb = ldb_module_get_ctx(module); - - ret = ldb_mod_register_control(module, - LDB_CONTROL_PERMISSIVE_MODIFY_OID); /* ignore errors on this - we expect it for non-sam databases */ + ldb_mod_register_control(module, LDB_CONTROL_PERMISSIVE_MODIFY_OID); /* there can be no module beyond the backend, just return */ return LDB_SUCCESS; -- cgit