From 38ff86b149e1aa9a9a61f2b9f8d9c537997694d7 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 30 Jun 2021 10:07:14 -0300 Subject: [PATCH] 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 --- dwarves_fprintf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c index 9608ddd..bcb76b8 100644 --- a/dwarves_fprintf.c +++ b/dwarves_fprintf.c @@ -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: