r792: - changed the ldb ldif_* functions to be in the ldb_ namespace
[kamenim/samba.git] / source4 / lib / ldb / tools / ldbadd.c
index a45021c1d965bf3363fc2c2cb022c9cb1cfd1a04..9383197ed037152b627af6f188e1053fd8110936 100644 (file)
@@ -55,7 +55,7 @@ static int process_file(struct ldb_context *ldb, FILE *f)
        struct ldb_ldif *ldif;
        int ret, count=0;
 
-       while ((ldif = ldif_read_file(ldb, f))) {
+       while ((ldif = ldb_ldif_read_file(ldb, f))) {
                if (ldif->changetype != LDB_CHANGETYPE_ADD &&
                    ldif->changetype != LDB_CHANGETYPE_NONE) {
                        fprintf(stderr, "Only CHANGETYPE_ADD records allowed\n");
@@ -70,7 +70,7 @@ static int process_file(struct ldb_context *ldb, FILE *f)
                } else {
                        count++;
                }
-               ldif_read_free(ldb, ldif);
+               ldb_ldif_read_free(ldb, ldif);
        }
 
        return count;