]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix some -Wformat warnings in rpcgen.
authorRoland McGrath <roland@hack.frob.com>
Thu, 26 Jul 2012 21:33:52 +0000 (14:33 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 26 Jul 2012 21:35:05 +0000 (14:35 -0700)
ChangeLog
sunrpc/rpc_hout.c
sunrpc/rpc_main.c
sunrpc/rpc_svcout.c

index 9fb871da32a89989ef90e16b09f51d2d2919cc65..91826c2a0bb159b0ac59cd6c24c067441abc81b3 100644 (file)
--- a/ChangeLog
+++ b/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.
index 31b6d3a3fe646988238a339141c802414bb0a89e..10f793d233133e7b1e681b0609acdf582f8540f3 100644 (file)
@@ -579,7 +579,7 @@ pdeclaration (const char *name, declaration * dec, int tab,
          break;
        }
     }
-  f_print (fout, separator);
+  f_print (fout, "%s", separator);
 }
 
 static int
index 3096455eec1ec800828f1b8b88bb421f45093b13..06d951aa6a9626d9d9d893df00f136c32f31c343 100644 (file)
@@ -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)
index be234aee8af3e1c37a07e6e2ff46b9d1e342d03c..4f12a8146c99bfd060922439c720c91a824233e2 100644 (file)
@@ -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);