From 9f98c16cfe10fd70fedd647b328adac1a9b38f78 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 26 Jul 2012 14:33:52 -0700 Subject: Fix some -Wformat warnings in rpcgen. --- sunrpc/rpc_hout.c | 2 +- sunrpc/rpc_main.c | 2 +- sunrpc/rpc_svcout.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sunrpc') diff --git a/sunrpc/rpc_hout.c b/sunrpc/rpc_hout.c index 31b6d3a3fe..10f793d233 100644 --- a/sunrpc/rpc_hout.c +++ b/sunrpc/rpc_hout.c @@ -579,7 +579,7 @@ pdeclaration (const char *name, declaration * dec, int tab, break; } } - f_print (fout, separator); + f_print (fout, "%s", separator); } static int diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index 3096455eec..06d951aa6a 100644 --- a/sunrpc/rpc_main.c +++ b/sunrpc/rpc_main.c @@ -643,7 +643,7 @@ h_output (const char *infile, const char *define, int extend, } else if (tblflag) { - fprintf (fout, rpcgen_table_dcl); + fprintf (fout, "%s", rpcgen_table_dcl); } if (Cflag) diff --git a/sunrpc/rpc_svcout.c b/sunrpc/rpc_svcout.c index be234aee8a..4f12a8146c 100644 --- a/sunrpc/rpc_svcout.c +++ b/sunrpc/rpc_svcout.c @@ -353,7 +353,7 @@ write_real_program (const definition * def) f_print (fout, " ("); /* arg name */ if (proc->arg_num > 1) - f_print (fout, proc->args.argname); + f_print (fout, "%s", proc->args.argname); else ptype (proc->args.decls->decl.prefix, proc->args.decls->decl.type, 0); -- cgit 1.4.1