From 4e93962ea544f2c32077a42071be3176c377b8e9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 12 Dec 2006 19:02:14 +0000 Subject: r20130: remove one more talloc_get_type() metze (This used to be commit 024dacb3b0a32bcaaef0b7a7598070b9034a7648) --- source4/lib/ldb/ldb_ldap/ldb_ldap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/lib/ldb/ldb_ldap/ldb_ldap.c') diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c index bbc1e368a1..9847ec4273 100644 --- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c +++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c @@ -476,9 +476,9 @@ static int lldb_rename(struct ldb_module *module, struct ldb_request *req) return lldb_ldap_to_ldb(ret); } -static int lldb_parse_result(struct ldb_handle *handle, LDAPMessage *result) +static int lldb_parse_result(struct lldb_context *ac, LDAPMessage *result) { - struct lldb_context *ac = talloc_get_type(handle->private_data, struct lldb_context); + struct ldb_handle *handle = ac->handle; struct lldb_private *lldb = ac->lldb; struct ldb_reply *ares = NULL; LDAPMessage *msg; @@ -683,7 +683,7 @@ static int lldb_wait(struct ldb_handle *handle, enum ldb_wait_type type) goto done; } - return lldb_parse_result(handle, result); + return lldb_parse_result(ac, result); case LDB_WAIT_ALL: timeout.tv_usec = 0; @@ -706,7 +706,7 @@ static int lldb_wait(struct ldb_handle *handle, enum ldb_wait_type type) return LDB_ERR_TIME_LIMIT_EXCEEDED; } - ret = lldb_parse_result(handle, result); + ret = lldb_parse_result(ac, result); if (ret != LDB_SUCCESS) { return ret; } -- cgit