]> granicus.if.org Git - python/commitdiff
Merged revisions 74052 via svnmerge from
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 21 Mar 2010 17:35:54 +0000 (17:35 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 21 Mar 2010 17:35:54 +0000 (17:35 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74052 | alexandre.vassalotti | 2009-07-17 10:09:04 +0200 (ven., 17 juil. 2009) | 3 lines

  Fix GCC warning about fprintf used without a string literal and
  without format arguments.
........

Modules/main.c

index de0c8513ee6b6e21e788f1352db8a0cdb96f5a43..a1159b787b37a1817b62d5ff9cf9ffa0162f4883 100644 (file)
@@ -112,9 +112,9 @@ usage(int exitcode, char* program)
        if (exitcode)
                fprintf(f, "Try `python -h' for more information.\n");
        else {
-               fprintf(f, usage_1);
-               fprintf(f, usage_2);
-               fprintf(f, usage_3);
+               fputs(usage_1, f);
+               fputs(usage_2, f);
+               fputs(usage_3, f);
                fprintf(f, usage_4, DELIM);
                fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
        }