pack-objects: rename 'this' 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>
Brandon Williams committed
Feb 14, 2018 at 10:59 UTC
095b3b2c04850368b2ec77b96db29c3ce5b9424c
1 file changed
+4
-4
builtin/pack-objects.c
+4
-4
@@ -1376,10 +1376,10 @@ static void cleanup_preferred_base(void)
1376
it = pbase_tree;
1377
pbase_tree = NULL;
1378
while (it) {
1379
- struct pbase_tree *this = it;
1380
- it = this->next;
1381
- free(this->pcache.tree_data);
1382
- free(this);
1379
+ struct pbase_tree *tmp = it;
1380
+ it = tmp->next;
1381
+ free(tmp->pcache.tree_data);
1382
+ free(tmp);
1383
}
1384
1385
for (i = 0; i < ARRAY_SIZE(pbase_tree_cache); i++) {