]> git.samba.org - metze/samba/wip.git/commitdiff
r19719: don't use 'new' as var name samba3 doesn't like it...
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Nov 2006 15:33:38 +0000 (15:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:13 +0000 (14:28 -0500)
metze
(This used to be commit 7a4f46c1c9ec8119db46ffc57d77fcf13ca0c5a8)

source4/lib/ldb/common/ldb_dn.c

index 550b80c26a0b110ccd041b3d47b85c0fff3d83c6..48f471bf6fdf86a1d8a1b439ff7db02a01c36bd6 100644 (file)
@@ -704,7 +704,7 @@ static struct ldb_dn_component ldb_dn_copy_component(void *mem_ctx, struct ldb_d
 /* Copy a DN but replace the old with the new base DN. */
 struct ldb_dn *ldb_dn_copy_rebase(void *mem_ctx, const struct ldb_dn *old, const struct ldb_dn *old_base, const struct ldb_dn *new_base)
 {
-       struct ldb_dn *new;
+       struct ldb_dn *new_dn;
        int i, offset;
 
        /* Perhaps we don't need to rebase at all? */
@@ -713,12 +713,12 @@ struct ldb_dn *ldb_dn_copy_rebase(void *mem_ctx, const struct ldb_dn *old, const
        }
 
        offset = old->comp_num - old_base->comp_num;
-       new = ldb_dn_copy_partial(mem_ctx, new_base, offset + new_base->comp_num);
+       new_dn = ldb_dn_copy_partial(mem_ctx, new_base, offset + new_base->comp_num);
        for (i = 0; i < offset; i++) {
-               new->components[i] = ldb_dn_copy_component(new->components, &(old->components[i]));
+               new_dn->components[i] = ldb_dn_copy_component(new_dn->components, &(old->components[i]));
        }
 
-       return new;
+       return new_dn;
 }
 
 /* copy specified number of elements of a dn into a new one