@@ -228,7 +228,7 @@ static unsigned check_object(struct object *obj)
228228 if (type != obj -> type )
229229 die (_ ("object %s: expected type %s, found %s" ),
230230 oid_to_hex (& obj -> oid ),
231- typename (obj -> type ), typename (type ));
231+ type_name (obj -> type ), type_name (type ));
232232 obj -> flags |= FLAG_CHECKED ;
233233 return 1 ;
234234 }
@@ -448,7 +448,7 @@ static void *unpack_entry_data(off_t offset, unsigned long size,
448448 int hdrlen ;
449449
450450 if (!is_delta_type (type )) {
451- hdrlen = xsnprintf (hdr , sizeof (hdr ), "%s %lu" , typename (type ), size ) + 1 ;
451+ hdrlen = xsnprintf (hdr , sizeof (hdr ), "%s %lu" , type_name (type ), size ) + 1 ;
452452 git_SHA1_Init (& c );
453453 git_SHA1_Update (& c , hdr , hdrlen );
454454 } else
@@ -849,7 +849,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
849849 obj = parse_object_buffer (oid , type , size , buf ,
850850 & eaten );
851851 if (!obj )
852- die (_ ("invalid %s" ), typename (type ));
852+ die (_ ("invalid %s" ), type_name (type ));
853853 if (do_fsck_object &&
854854 fsck_object (obj , buf , size , & fsck_options ))
855855 die (_ ("Error in object" ));
@@ -959,7 +959,7 @@ static void resolve_delta(struct object_entry *delta_obj,
959959 if (!result -> data )
960960 bad_object (delta_obj -> idx .offset , _ ("failed to apply delta" ));
961961 hash_sha1_file (result -> data , result -> size ,
962- typename (delta_obj -> real_type ),
962+ type_name (delta_obj -> real_type ),
963963 delta_obj -> idx .oid .hash );
964964 sha1_object (result -> data , NULL , result -> size , delta_obj -> real_type ,
965965 & delta_obj -> idx .oid );
@@ -1379,7 +1379,7 @@ static void fix_unresolved_deltas(struct sha1file *f)
13791379 continue ;
13801380
13811381 if (check_sha1_signature (d -> sha1 , base_obj -> data ,
1382- base_obj -> size , typename (type )))
1382+ base_obj -> size , type_name (type )))
13831383 die (_ ("local object %s is corrupt" ), sha1_to_hex (d -> sha1 ));
13841384 base_obj -> obj = append_obj_to_pack (f , d -> sha1 ,
13851385 base_obj -> data , base_obj -> size , type );
@@ -1588,7 +1588,7 @@ static void show_pack_info(int stat_only)
15881588 continue ;
15891589 printf ("%s %-6s %lu %lu %" PRIuMAX ,
15901590 oid_to_hex (& obj -> idx .oid ),
1591- typename (obj -> real_type ), obj -> size ,
1591+ type_name (obj -> real_type ), obj -> size ,
15921592 (unsigned long )(obj [1 ].idx .offset - obj -> idx .offset ),
15931593 (uintmax_t )obj -> idx .offset );
15941594 if (is_delta_type (obj -> type )) {
0 commit comments