]> Kevux Git Server - rit/commit
builtin/maintenance: fix typedef for function pointers
authorPatrick Steinhardt <ps@pks.im>
Tue, 3 Jun 2025 14:01:15 +0000 (16:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2025 15:30:50 +0000 (08:30 -0700)
commit3236e03c666d66ac94379e192eee5c098bcf7758
tree87a68476af2b0de11247b37e1a8e38e9b74f44fb
parent2aa9ee7eecc696fe93a8f00b0eb2369de5279aaa
builtin/maintenance: fix typedef for function pointers

The typedefs for `maintenance_task_fn` and `maintenance_auto_fn` are
somewhat confusingly not true function pointers. As such, any user of
those typedefs needs to manually add the pointer to make use of them.

Fix this by making these true function pointers.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c