unpack-trees: rename 'new' variables
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
176513264b
commit
69caed593e
@ -194,10 +194,10 @@ static int do_add_entry(struct unpack_trees_options *o, struct cache_entry *ce,
|
|||||||
static struct cache_entry *dup_entry(const struct cache_entry *ce)
|
static struct cache_entry *dup_entry(const struct cache_entry *ce)
|
||||||
{
|
{
|
||||||
unsigned int size = ce_size(ce);
|
unsigned int size = ce_size(ce);
|
||||||
struct cache_entry *new = xmalloc(size);
|
struct cache_entry *new_entry = xmalloc(size);
|
||||||
|
|
||||||
memcpy(new, ce, size);
|
memcpy(new_entry, ce, size);
|
||||||
return new;
|
return new_entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void add_entry(struct unpack_trees_options *o,
|
static void add_entry(struct unpack_trees_options *o,
|
||||||
|
Loading…
Reference in New Issue
Block a user