]> git.ipfire.org Git - thirdparty/git.git/commit
object-name: declare pointer type of extend_abbrev_len()'s 2nd parameter
authorRené Scharfe <l.s.r@web.de>
Thu, 4 Sep 2025 17:58:25 +0000 (19:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Sep 2025 20:25:46 +0000 (13:25 -0700)
commit069c15d256ed5308d09a7a16d64c8af2416bed58
treecba47a4b72d0b6e068bb2b4fca121bf1a61aaac6
parenta1cf0cf13ab3a659ac77b7d749d6e5b11dc0142b
object-name: declare pointer type of extend_abbrev_len()'s 2nd parameter

Expose the expected type of the second parameter of extend_abbrev_len()
instead of casting a void pointer internally.  Just a single caller
passes in a void pointer, the rest pass the correct type.  Let the
compiler help keeping it that way.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-name.c