diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-10 12:05:48 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-10 06:51:06 +0100 |
commit | 8720811598aa691f6c09910a329a601f9ad130cc (patch) | |
tree | a908c2b9b52505dc4b9e36ede2564f0085fa4d17 /source4 | |
parent | 7fac3258f7ec52e44998276e848a27c03d7fe0b6 (diff) | |
download | samba-8720811598aa691f6c09910a329a601f9ad130cc.tar.gz samba-8720811598aa691f6c09910a329a601f9ad130cc.tar.bz2 samba-8720811598aa691f6c09910a329a601f9ad130cc.zip |
ldb: fixed two warnings in the ldb_ldap backend
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/ldb_ldap/ldb_ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c index b328ebf7e3..7e6ac903c8 100644 --- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c +++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c @@ -120,7 +120,7 @@ static LDAPMod **lldb_msg_to_mods(void *mem_ctx, const struct ldb_message *msg, if (!mods[num_mods]->mod_vals.modv_bvals[j]) { goto failed; } - mods[num_mods]->mod_vals.modv_bvals[j]->bv_val = el->values[j].data; + mods[num_mods]->mod_vals.modv_bvals[j]->bv_val = (char *)el->values[j].data; mods[num_mods]->mod_vals.modv_bvals[j]->bv_len = el->values[j].length; } mods[num_mods]->mod_vals.modv_bvals[j] = NULL; @@ -455,7 +455,7 @@ static int lldb_del_trans(struct ldb_module *module) return LDB_SUCCESS; } -void lldb_request_done(struct lldb_context *ac, +static void lldb_request_done(struct lldb_context *ac, struct ldb_control **ctrls, int error) { struct ldb_request *req; |