Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
unpack-trees: rename 'new' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:51 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
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>
unpack-trees.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1765132
)
diff --git
a/unpack-trees.c
b/unpack-trees.c
index 96c3327f19de4b1060ed43ef291a57a76ff2b8cc..bdedabcd5741f84dc2e5533a44adf0066fe87a85 100644
(file)
--- a/
unpack-trees.c
+++ b/
unpack-trees.c
@@
-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)
{
unsigned int size = ce_size(ce);
- struct cache_entry *new = xmalloc(size);
+ struct cache_entry *new
_entry
= xmalloc(size);
- memcpy(new, ce, size);
- return new;
+ memcpy(new
_entry
, ce, size);
+ return new
_entry
;
}
static void add_entry(struct unpack_trees_options *o,