object: rename function 'typename' to 'type_name'

Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Brandon Williams
2018-02-14 10:59:24 -08:00
committed by Junio C Hamano
parent 6ca32f4714
commit debca9d2fe
32 changed files with 73 additions and 73 deletions

View File

@ -1357,7 +1357,7 @@ int packed_object_info(struct packed_git *p, off_t obj_offset,
if (oi->typep)
*oi->typep = ptot;
if (oi->type_name) {
const char *tn = typename(ptot);
const char *tn = type_name(ptot);
if (tn)
strbuf_addstr(oi->type_name, tn);
}