diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-09-15 08:52:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-09-15 08:52:07 -0700 |
commit | 5fe4f6304f10b589f725affbe434cfef33e44cfe (patch) | |
tree | a982b4838e08088469199fcd3aef9ce9b345eea8 | |
parent | a93ec6da429b2cf2d6a5ca83e981ba440c5238d8 (diff) | |
parent | 069c15d256ed5308d09a7a16d64c8af2416bed58 (diff) |
Merge branch 'rs/object-name-extend-abbrev-len-update'
Code clean-up.
* rs/object-name-extend-abbrev-len-update:
object-name: declare pointer type of extend_abbrev_len()'s 2nd parameter
-rw-r--r-- | object-name.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/object-name.c b/object-name.c index 732056ff5e..1e0118e8a6 100644 --- a/object-name.c +++ b/object-name.c @@ -696,10 +696,9 @@ static inline char get_hex_char_from_oid(const struct object_id *oid, return hex[oid->hash[pos >> 1] & 0xf]; } -static int extend_abbrev_len(const struct object_id *oid, void *cb_data) +static int extend_abbrev_len(const struct object_id *oid, + struct min_abbrev_data *mad) { - struct min_abbrev_data *mad = cb_data; - unsigned int i = mad->init_len; while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i)) i++; |