summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-20 21:45:53 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-20 22:32:06 +0100
commit6d1e00cd249b44ae234b0d378ec4f67fb7bb3ab3 (patch)
treeb39ec3969eb9e083c9ecbba938158830ed40b845 /source4/dsdb
parentf46b76105458772d953d96921523dc02a7a8358f (diff)
downloadsamba-6d1e00cd249b44ae234b0d378ec4f67fb7bb3ab3.tar.gz
samba-6d1e00cd249b44ae234b0d378ec4f67fb7bb3ab3.tar.bz2
samba-6d1e00cd249b44ae234b0d378ec4f67fb7bb3ab3.zip
s4:repl_meta_data LDB module - fix a counter type
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 20 22:32:06 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 7157134bcd..3a27e7bd71 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -1329,13 +1329,15 @@ static int parsed_dn_compare(struct parsed_dn *pdn1, struct parsed_dn *pdn2)
return GUID_compare(pdn1->guid, pdn2->guid);
}
-static struct parsed_dn *parsed_dn_find(struct parsed_dn *pdn, int count, struct GUID *guid, struct ldb_dn *dn)
+static struct parsed_dn *parsed_dn_find(struct parsed_dn *pdn,
+ unsigned int count, struct GUID *guid,
+ struct ldb_dn *dn)
{
struct parsed_dn *ret;
+ unsigned int i;
if (dn && GUID_all_zero(guid)) {
/* when updating a link using DRS, we sometimes get a
NULL GUID. We then need to try and match by DN */
- int i;
for (i=0; i<count; i++) {
if (ldb_dn_compare(pdn[i].dsdb_dn->dn, dn) == 0) {
dsdb_get_extended_dn_guid(pdn[i].dsdb_dn->dn, guid, "GUID");