summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ldap
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-10 12:05:48 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-10 06:51:06 +0100
commit8720811598aa691f6c09910a329a601f9ad130cc (patch)
treea908c2b9b52505dc4b9e36ede2564f0085fa4d17 /source4/lib/ldb/ldb_ldap
parent7fac3258f7ec52e44998276e848a27c03d7fe0b6 (diff)
downloadsamba-8720811598aa691f6c09910a329a601f9ad130cc.tar.gz
samba-8720811598aa691f6c09910a329a601f9ad130cc.tar.bz2
samba-8720811598aa691f6c09910a329a601f9ad130cc.zip
ldb: fixed two warnings in the ldb_ldap backend
Diffstat (limited to 'source4/lib/ldb/ldb_ldap')
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c4
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;