Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-26 02:24:53 +0300
committerJunio C Hamano <gitster@pobox.com>2020-11-26 02:24:53 +0300
commit2ba70a330be354aab60f1db6f8b6670d707dd615 (patch)
tree61ffc32170589f2937087a542927c0454aef78ae /builtin
parent57228d31899a7f538c03b33d309f479362854cb6 (diff)
parenta1c74791d5ffaa6d723abb14cebf556499c3c4cb (diff)
Merge branch 'rs/gc-sort-func-cast-fix'
Fix broken sorting of maintenance tasks. * rs/gc-sort-func-cast-fix: gc: fix cast in compare_tasks_by_selection()
Diffstat (limited to 'builtin')
-rw-r--r--builtin/gc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/builtin/gc.c b/builtin/gc.c
index 3d258b60c2..bc25ad52c7 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -1253,10 +1253,8 @@ static struct maintenance_task tasks[] = {
static int compare_tasks_by_selection(const void *a_, const void *b_)
{
- const struct maintenance_task *a, *b;
-
- a = (const struct maintenance_task *)&a_;
- b = (const struct maintenance_task *)&b_;
+ const struct maintenance_task *a = a_;
+ const struct maintenance_task *b = b_;
return b->selected_order - a->selected_order;
}