From 0086db6c0cdf0c7afccc143259c8c55382e466aa Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 6 Apr 2010 14:09:38 +0200 Subject: LDB:sample_module.c - remove code parts which generate warnings Btw: The use of the "ldb_msg_add_fmt" operation directly on the request message object is strongly discouraged. Better is to make a shallow copy of this message and attach it to a new child request which is handled by the following modules. --- source4/lib/ldb/tests/sample_module.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/tests/sample_module.c b/source4/lib/ldb/tests/sample_module.c index bb7906e7ba..f48a1ee53f 100644 --- a/source4/lib/ldb/tests/sample_module.c +++ b/source4/lib/ldb/tests/sample_module.c @@ -26,9 +26,6 @@ int sample_add(struct ldb_module *mod, struct ldb_request *req) { struct ldb_control *control; - struct ldb_control *controls; - ldb_msg_add_fmt(req->op.add.message, "touchedBy", "sample"); - /* check if there's a relax control */ control = ldb_request_get_control(req, LDB_CONTROL_RELAX_OID); @@ -43,7 +40,6 @@ int sample_add(struct ldb_module *mod, struct ldb_request *req) int sample_modify(struct ldb_module *mod, struct ldb_request *req) { struct ldb_control *control; - struct ldb_control *controls; /* check if there's a relax control */ control = ldb_request_get_control(req, LDB_CONTROL_RELAX_OID); -- cgit