diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-12-12 19:02:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:29:12 -0500 |
commit | 4e93962ea544f2c32077a42071be3176c377b8e9 (patch) | |
tree | a2ee5e0011048507d272595e93d5293a1e040ba9 /source4 | |
parent | 1a82770112c29069e85e0bddb4e6e0bb39d506fb (diff) | |
download | samba-4e93962ea544f2c32077a42071be3176c377b8e9.tar.gz samba-4e93962ea544f2c32077a42071be3176c377b8e9.tar.bz2 samba-4e93962ea544f2c32077a42071be3176c377b8e9.zip |
r20130: remove one more talloc_get_type()
metze
(This used to be commit 024dacb3b0a32bcaaef0b7a7598070b9034a7648)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/ldb_ldap/ldb_ldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |