Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5fe4f63

Browse files
committed
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
2 parents a93ec6d + 069c15d commit 5fe4f63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

object-name.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,10 +696,9 @@ static inline char get_hex_char_from_oid(const struct object_id *oid,
696696
return hex[oid->hash[pos >> 1] & 0xf];
697697
}
698698

699-
static int extend_abbrev_len(const struct object_id *oid, void *cb_data)
699+
static int extend_abbrev_len(const struct object_id *oid,
700+
struct min_abbrev_data *mad)
700701
{
701-
struct min_abbrev_data *mad = cb_data;
702-
703702
unsigned int i = mad->init_len;
704703
while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i))
705704
i++;

0 commit comments

Comments
 (0)