summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ldap
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-06-15 02:45:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:13 -0500
commit93e03bd27215a54d79ca996941468d1c33099ff3 (patch)
treec52852c5f12051a8e726e6006fc63e2e6ffbd11e /source4/lib/ldb/ldb_ldap
parentf021dffb6991138213967521c743f03f474f9af9 (diff)
downloadsamba-93e03bd27215a54d79ca996941468d1c33099ff3.tar.gz
samba-93e03bd27215a54d79ca996941468d1c33099ff3.tar.bz2
samba-93e03bd27215a54d79ca996941468d1c33099ff3.zip
r7602: fix some compiler warnings
(This used to be commit ce9966e091d36f66d409ac6f7b5e462c9dc37325)
Diffstat (limited to 'source4/lib/ldb/ldb_ldap')
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
index b3d8fcc1a5..828bcc5d61 100644
--- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -351,7 +351,7 @@ static LDAPMod **lldb_msg_to_mods(struct ldb_context *ldb,
break;
}
}
- mods[num_mods]->mod_type = el->name;
+ mods[num_mods]->mod_type = discard_const_p(char, el->name);
mods[num_mods]->mod_vals.modv_bvals = talloc_array(mods[num_mods],
struct berval *,
1+el->num_values);