summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-16 15:10:11 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-16 13:54:13 +0000
commit39d11a977d0f326fe676b245fa55e63416350e81 (patch)
tree2ac113e46ef8f1eab7a4faf533dcda68eb1a144f /source4/lib
parent531d7f569e2fc1c385fb294fe7fb81d9b3d371f9 (diff)
downloadsamba-39d11a977d0f326fe676b245fa55e63416350e81.tar.gz
samba-39d11a977d0f326fe676b245fa55e63416350e81.tar.bz2
samba-39d11a977d0f326fe676b245fa55e63416350e81.zip
ldb:"ldb_dn_compare_base" - use "unsigned int" counters
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 16 13:54:13 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index 885433f3e5..69018b7bfc 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -1029,7 +1029,7 @@ char *ldb_dn_alloc_casefold(TALLOC_CTX *mem_ctx, struct ldb_dn *dn)
int ldb_dn_compare_base(struct ldb_dn *base, struct ldb_dn *dn)
{
int ret;
- long long int n_base, n_dn;
+ unsigned int n_base, n_dn;
if ( ! base || base->invalid) return 1;
if ( ! dn || dn->invalid) return -1;
@@ -1080,7 +1080,7 @@ int ldb_dn_compare_base(struct ldb_dn *base, struct ldb_dn *dn)
n_base = base->comp_num - 1;
n_dn = dn->comp_num - 1;
- while (n_base >= 0) {
+ while (n_base != (unsigned int) -1) {
char *b_name = base->components[n_base].cf_name;
char *dn_name = dn->components[n_dn].cf_name;