Skip to content

Commit

Permalink
ldapsrv: Pass struct ldb_result * rather than void *
Browse files Browse the repository at this point in the history
Change-Id: Ic521cbfcf922cfe9e14c89116c097b777a86af40
Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-on: https://gerrit.samba.org/35
Reviewed-by: Stefan Metzmacher <[email protected]>
  • Loading branch information
abartlet authored and metze-samba committed Mar 14, 2014
1 parent 1b7f387 commit 7db0def
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source4/ldap_server/ldap_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down Expand Up @@ -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;
Expand All @@ -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);

Expand Down Expand Up @@ -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;
Expand All @@ -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);

Expand Down Expand Up @@ -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;
Expand All @@ -460,7 +460,7 @@ static int ldapsrv_rename_with_controls(struct ldapsrv_call *call,
olddn,
newdn,
NULL,
context,
res,
ldb_modify_default_callback,
NULL);

Expand Down

0 comments on commit 7db0def

Please sign in to comment.