mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Fix some -Wformat warnings in rpcgen.
This commit is contained in:
parent
f3c22df3c5
commit
9f98c16cfe
@ -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>
|
2012-07-26 Pino Toscano <toscano.pino@tiscali.it>
|
||||||
|
|
||||||
* inet/check_native.c: New file.
|
* inet/check_native.c: New file.
|
||||||
|
@ -579,7 +579,7 @@ pdeclaration (const char *name, declaration * dec, int tab,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
f_print (fout, separator);
|
f_print (fout, "%s", separator);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -643,7 +643,7 @@ h_output (const char *infile, const char *define, int extend,
|
|||||||
}
|
}
|
||||||
else if (tblflag)
|
else if (tblflag)
|
||||||
{
|
{
|
||||||
fprintf (fout, rpcgen_table_dcl);
|
fprintf (fout, "%s", rpcgen_table_dcl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Cflag)
|
if (Cflag)
|
||||||
|
@ -353,7 +353,7 @@ write_real_program (const definition * def)
|
|||||||
f_print (fout, " (");
|
f_print (fout, " (");
|
||||||
/* arg name */
|
/* arg name */
|
||||||
if (proc->arg_num > 1)
|
if (proc->arg_num > 1)
|
||||||
f_print (fout, proc->args.argname);
|
f_print (fout, "%s", proc->args.argname);
|
||||||
else
|
else
|
||||||
ptype (proc->args.decls->decl.prefix,
|
ptype (proc->args.decls->decl.prefix,
|
||||||
proc->args.decls->decl.type, 0);
|
proc->args.decls->decl.type, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user