[PATCH 04/37] pack-objects: rename 'this' variables
- From
- Brandon Williams <bmwill@google.com>
- Date
- Jan 29, 2018, 22:36 UTC
- Message-ID
- <20180129223728.30569-5-bmwill@google.com>
- In-Reply-To
- <20180129223728.30569-1-bmwill@google.com>
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> --- builtin/pack-objects.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 6b9cfc289..bfda8602c 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -1376,10 +1376,10 @@ static void cleanup_preferred_base(void) it = pbase_tree; pbase_tree = NULL; while (it) { - struct pbase_tree *this = it; - it = this->next; - free(this->pcache.tree_data); - free(this); + struct pbase_tree *tmp = it; + it = tmp->next; + free(tmp->pcache.tree_data); + free(tmp); } for (i = 0; i < ARRAY_SIZE(pbase_tree_cache); i++) {
-- 2.16.0.rc1.238.g530d649a79-goog