ldapsrv: Pass struct ldb_result * rather than void *
authorAndrew Bartlett <abartlet@samba.org>
Mon, 2 Dec 2013 02:47:42 +0000 (15:47 +1300)
committerStefan Metzmacher <metze@samba.org>
Fri, 14 Mar 2014 11:53:11 +0000 (12:53 +0100)
Change-Id: Ic521cbfcf922cfe9e14c89116c097b777a86af40
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-on: https://gerrit.samba.org/35
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/ldap_server/ldap_backend.c

index 3432594209a46a419bac33868a9d491e930c126e..b0877d298678a5ec682eacc3b2e9c09d58c3cdf7 100644 (file)
@@ -285,7 +285,7 @@ static NTSTATUS ldapsrv_unwilling(struct ldapsrv_call *call, int error)
 static int ldapsrv_add_with_controls(struct ldapsrv_call *call,
                                     const struct ldb_message *message,
                                     struct ldb_control **controls,
-                                    void *context)
+                                    struct ldb_result *res)
 {
        struct ldb_context *ldb = call->conn->ldb;
        struct ldb_request *req;
@@ -299,7 +299,7 @@ static int ldapsrv_add_with_controls(struct ldapsrv_call *call,
        ret = ldb_build_add_req(&req, ldb, ldb,
                                        message,
                                        controls,
-                                       context,
+                                       res,
                                        ldb_modify_default_callback,
                                        NULL);
 
@@ -341,7 +341,7 @@ static int ldapsrv_add_with_controls(struct ldapsrv_call *call,
 static int ldapsrv_mod_with_controls(struct ldapsrv_call *call,
                                     const struct ldb_message *message,
                                     struct ldb_control **controls,
-                                    void *context)
+                                    struct ldb_result *res)
 {
        struct ldb_context *ldb = call->conn->ldb;
        struct ldb_request *req;
@@ -355,7 +355,7 @@ static int ldapsrv_mod_with_controls(struct ldapsrv_call *call,
        ret = ldb_build_mod_req(&req, ldb, ldb,
                                        message,
                                        controls,
-                                       context,
+                                       res,
                                        ldb_modify_default_callback,
                                        NULL);
 
@@ -399,7 +399,7 @@ static int ldapsrv_mod_with_controls(struct ldapsrv_call *call,
 static int ldapsrv_del_with_controls(struct ldapsrv_call *call,
                                     struct ldb_dn *dn,
                                     struct ldb_control **controls,
-                                    void *context)
+                                    struct ldb_result *res)
 {
        struct ldb_context *ldb = call->conn->ldb;
        struct ldb_request *req;
@@ -408,7 +408,7 @@ static int ldapsrv_del_with_controls(struct ldapsrv_call *call,
        ret = ldb_build_del_req(&req, ldb, ldb,
                                        dn,
                                        controls,
-                                       context,
+                                       res,
                                        ldb_modify_default_callback,
                                        NULL);
 
@@ -450,7 +450,7 @@ static int ldapsrv_rename_with_controls(struct ldapsrv_call *call,
                                        struct ldb_dn *olddn,
                                        struct ldb_dn *newdn,
                                        struct ldb_control **controls,
-                                       void *context)
+                                       struct ldb_result *res)
 {
        struct ldb_context *ldb = call->conn->ldb;
        struct ldb_request *req;
@@ -460,7 +460,7 @@ static int ldapsrv_rename_with_controls(struct ldapsrv_call *call,
                                        olddn,
                                        newdn,
                                        NULL,
-                                       context,
+                                       res,
                                        ldb_modify_default_callback,
                                        NULL);