Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some -Wformat warnings in rpcgen.
  • Loading branch information
Roland McGrath committed Jul 26, 2012
1 parent f3c22df commit 9f98c16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2012-07-26 Roland McGrath <roland@hack.frob.com>

* sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
rather than a string variable.
* sunrpc/rpc_main.c (h_output): Likewise.
* sunrpc/rpc_svcout.c (write_real_program): Likewise.

2012-07-26 Pino Toscano <toscano.pino@tiscali.it>

* inet/check_native.c: New file.
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/rpc_hout.c
Expand Up @@ -579,7 +579,7 @@ pdeclaration (const char *name, declaration * dec, int tab,
break;
}
}
f_print (fout, separator);
f_print (fout, "%s", separator);
}

static int
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/rpc_main.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/rpc_svcout.c
Expand Up @@ -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);
Expand Down

0 comments on commit 9f98c16

Please sign in to comment.