fprintf: string_type__fprintf() doesn't need a 'cu' arg

Another simplification made possible by using a plain char string
instead of string_t, that was only needed in the core as prep work
for CTF encoding.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-30 10:07:14 -03:00
parent a75c342ac2
commit 38ff86b149
1 changed files with 2 additions and 3 deletions

View File

@ -248,8 +248,7 @@ static size_t array_type__fprintf(const struct tag *tag,
return printed;
}
static size_t string_type__fprintf(const struct tag *tag,
const struct cu *cu, const char *name,
static size_t string_type__fprintf(const struct tag *tag, const char *name,
const struct conf_fprintf *conf,
FILE *fp)
{
@ -773,7 +772,7 @@ print_default:
printed += array_type__fprintf(type, cu, name, &tconf, fp);
break;
case DW_TAG_string_type:
printed += string_type__fprintf(type, cu, name, &tconf, fp);
printed += string_type__fprintf(type, name, &tconf, fp);
break;
case DW_TAG_class_type:
case DW_TAG_structure_type: