From 46a52ca446cc1fee7662554de70ba4e549448821 Mon Sep 17 00:00:00 2001 From: Bernd Petrovitsch Date: Thu, 26 Aug 2010 12:31:38 +0200 Subject: removed an unused parameter for show_symbol_list() A trivial patch to remove an unused parameter. Link: https://lore.kernel.org/linux-sparse/1282818698.12802.23.camel@thorin Signed-off-by: Luc Van Oostenryck --- show-parse.c | 2 +- symbol.h | 2 +- test-parsing.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/show-parse.c b/show-parse.c index 0546a7b9..3ab8ec8f 100644 --- a/show-parse.c +++ b/show-parse.c @@ -181,7 +181,7 @@ static void show_struct_member(struct symbol *sym) printf("\n"); } -void show_symbol_list(struct symbol_list *list, const char *sep) +void show_symbol_list(struct symbol_list *list) { struct symbol *sym; const char *prepend = ""; diff --git a/symbol.h b/symbol.h index 15b21452..5270fcd7 100644 --- a/symbol.h +++ b/symbol.h @@ -343,7 +343,7 @@ extern const char *modifier_string(unsigned long mod); extern void show_symbol(struct symbol *); extern int show_symbol_expr_init(struct symbol *sym); extern void show_type_list(struct symbol *); -extern void show_symbol_list(struct symbol_list *, const char *); +extern void show_symbol_list(struct symbol_list *); extern void add_symbol(struct symbol_list **, struct symbol *); extern void bind_symbol(struct symbol *, struct ident *, enum namespace); extern void bind_symbol_with_scope(struct symbol *, struct ident *, enum namespace, struct scope *); diff --git a/test-parsing.c b/test-parsing.c index c5bc42e1..2d4d86a1 100644 --- a/test-parsing.c +++ b/test-parsing.c @@ -60,7 +60,7 @@ int main(int argc, char **argv) clean_up_symbols(list); #if 1 - show_symbol_list(list, "\n\n"); + show_symbol_list(list); printf("\n\n"); #endif @@ -72,7 +72,7 @@ int main(int argc, char **argv) #if 1 // Show the end result. - show_symbol_list(list, "\n\n"); + show_symbol_list(list); printf("\n\n"); #endif } END_FOR_EACH_PTR(file); -- cgit 1.2.3-korg