ldb: fixed two warnings in the ldb_ldap backend
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Feb 2011 01:05:48 +0000 (12:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 10 Feb 2011 05:51:06 +0000 (06:51 +0100)
source4/lib/ldb/ldb_ldap/ldb_ldap.c

index b328ebf7e3215c52da385cbd7f5038e88712376d..7e6ac903c8ad543c04af0f999eaa1b37668143dd 100644 (file)
@@ -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;