diff --git a/khash.h b/khash.h index af747a683f..64d4eeb2bd 100644 --- a/khash.h +++ b/khash.h @@ -345,9 +345,7 @@ static inline int oid_equal(struct object_id a, struct object_id b) KHASH_INIT(oid, struct object_id, int, 0, oid_hash, oid_equal) KHASH_INIT(oid_map, struct object_id, void *, 1, oid_hash, oid_equal) -typedef kh_oid_t khash_oid_map; KHASH_INIT(oid_pos, struct object_id, int, 1, oid_hash, oid_equal) -typedef kh_oid_pos_t khash_oid_pos; #endif /* __AC_KHASH_H */ diff --git a/pack-bitmap.c b/pack-bitmap.c index ff1f07e249..998133588f 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@ -365,7 +365,7 @@ struct include_data { static inline int bitmap_position_extended(struct bitmap_index *bitmap_git, const struct object_id *oid) { - khash_oid_pos *positions = bitmap_git->ext_index.positions; + kh_oid_pos_t *positions = bitmap_git->ext_index.positions; khiter_t pos = kh_get_oid_pos(positions, *oid); if (pos < kh_end(positions)) {