summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-16 15:08:40 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-16 15:11:45 +0200
commit531d7f569e2fc1c385fb294fe7fb81d9b3d371f9 (patch)
tree624e020362a241f7eb2ebf2034d1e5ce6bd8bba5 /source4/lib
parent1557acb44af8c43ceafa5516915f7107e169f190 (diff)
downloadsamba-531d7f569e2fc1c385fb294fe7fb81d9b3d371f9.tar.gz
samba-531d7f569e2fc1c385fb294fe7fb81d9b3d371f9.tar.bz2
samba-531d7f569e2fc1c385fb294fe7fb81d9b3d371f9.zip
ldb:"ldb_dn_add_child" - use "unsigned int" counters
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index cb680e2e93..885433f3e5 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -1486,7 +1486,7 @@ bool ldb_dn_add_child(struct ldb_dn *dn, struct ldb_dn *child)
if (dn->components) {
unsigned int n;
- long long int i, j;
+ unsigned int i, j;
if (dn->comp_num == 0) {
return false;
@@ -1514,7 +1514,8 @@ bool ldb_dn_add_child(struct ldb_dn *dn, struct ldb_dn *child)
return false;
}
- for (i = dn->comp_num - 1, j = n - 1; i >= 0; i--, j--) {
+ for (i = dn->comp_num - 1, j = n - 1; i != (unsigned int) -1;
+ i--, j--) {
dn->components[j] = dn->components[i];
}