r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
[kamenim/samba.git] / source4 / lib / ldb / tools / ldbedit.c
index 7e417024222713a02e8fc51f8a2f76297f2a0568..90a6f947501fcbd7021c656ed5498d3fa2268975 100644 (file)
@@ -44,7 +44,7 @@ static int modify_record(struct ldb_context *ldb,
 {
        struct ldb_message mod;
        struct ldb_message_element *el;
-       int i;
+       unsigned int i;
        int count = 0;
 
        mod.dn = msg1->dn;
@@ -173,7 +173,7 @@ static int save_ldif(struct ldb_context *ldb,
                ldif.changetype = LDB_CHANGETYPE_NONE;
                ldif.msg = *msgs[i];
 
-               ldif_write_file(ldb, f, &ldif);
+               ldb_ldif_write_file(ldb, f, &ldif);
        }
 
        return 0;
@@ -243,7 +243,7 @@ static int do_edit(struct ldb_context *ldb, struct ldb_message **msgs1, int coun
                return -1;
        }
 
-       while ((ldif = ldif_read_file(ldb, f))) {
+       while ((ldif = ldb_ldif_read_file(ldb, f))) {
                msgs2 = ldb_realloc_p(ldb, msgs2, struct ldb_message *, count2+1);
                if (!msgs2) {
                        fprintf(stderr, "out of memory");