summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ldap
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-07-07 01:02:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:54 -0500
commit34ca729f733d9d22fc789a5fce6c448b03c96545 (patch)
treeada36cb103aadc3d3999de2a8124d5cba92b1a45 /source4/lib/ldb/ldb_ldap
parente59e82b90204107a3b6e2e6e3fc52d48634adc7a (diff)
downloadsamba-34ca729f733d9d22fc789a5fce6c448b03c96545.tar.gz
samba-34ca729f733d9d22fc789a5fce6c448b03c96545.tar.bz2
samba-34ca729f733d9d22fc789a5fce6c448b03c96545.zip
r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
changes in r1018. (This used to be commit 45b4016530fc0bfa13146f73a503866b5dbed517)
Diffstat (limited to 'source4/lib/ldb/ldb_ldap')
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
index d96bfd62d3..06d3884c16 100644
--- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -117,7 +117,7 @@ static int lldb_delete(struct ldb_context *ldb, const char *dn)
*/
static int lldb_msg_free(struct ldb_context *ldb, struct ldb_message *msg)
{
- int i, j;
+ unsigned int i, j;
ldb_free(ldb, msg->dn);
for (i=0;i<msg->num_elements;i++) {
ldb_free(ldb, msg->elements[i].name);
@@ -333,7 +333,8 @@ static LDAPMod **lldb_msg_to_mods(struct ldb_context *ldb,
const struct ldb_message *msg, int use_flags)
{
LDAPMod **mods;
- int i, j, num_mods = 0;
+ unsigned int i, j;
+ int num_mods = 0;
/* allocate maximum number of elements needed */
mods = ldb_malloc_array_p(ldb, LDAPMod *, msg->num_elements+1);