From ddf7eb2d8fa6186aac772459d876a2455716c963 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 13 Nov 2008 11:23:04 +0000 Subject: [PATCH] avoid warnings and fix potential bugs (if someone manages to get a % into a function name [r23615] --- driver/gen_firm_asm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/gen_firm_asm.c b/driver/gen_firm_asm.c index 8a02fc0..2b49b94 100644 --- a/driver/gen_firm_asm.c +++ b/driver/gen_firm_asm.c @@ -69,16 +69,16 @@ static void generate_header(FILE *f, ir_graph *irg) if (get_method_n_ress(tp) == 0) fprintf(f, "void"); else - fprintf(f, get_type_name(get_method_res_type(tp, 0))); + fputs(get_type_name(get_method_res_type(tp, 0)), f); fprintf(f, " %s(", s); n = get_method_n_params(tp); if (n == 0) - fprintf(f, get_method_variadicity(tp) == variadicity_variadic ? "" : "void"); + fputs(get_method_variadicity(tp) == variadicity_variadic ? "" : "void", f); else { for (i = 0; i < n; ++i) { if (i > 0) fprintf(f, ", "); - fprintf(f, get_type_name(get_method_param_type(tp, i))); + fputs(get_type_name(get_method_param_type(tp, i)), f); } if (get_method_variadicity(tp) == variadicity_variadic) fprintf(f, ", ..."); -- 2.20.1