diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-06 14:09:38 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-06 14:54:10 +0200 |
commit | 0086db6c0cdf0c7afccc143259c8c55382e466aa (patch) | |
tree | 929045497c30e1d82aa3c2b28eeabdea82b55ee4 /source4/lib | |
parent | 5f080d8e03f1060347cdd05d65bf72b0ce7dec0e (diff) | |
download | samba-0086db6c0cdf0c7afccc143259c8c55382e466aa.tar.gz samba-0086db6c0cdf0c7afccc143259c8c55382e466aa.tar.bz2 samba-0086db6c0cdf0c7afccc143259c8c55382e466aa.zip |
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.
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/tests/sample_module.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); |