X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/cf33c228e08142e3ef715105a191db24ec980ca8..fd7f0289bcfa2e830439e37395fd91f0d7587a39:/lib/yyerror.c?ds=sidebyside diff --git a/lib/yyerror.c b/lib/yyerror.c index 5eb339fa..332e91e2 100644 --- a/lib/yyerror.c +++ b/lib/yyerror.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include + #include int yyerror (char const *); @@ -25,5 +26,7 @@ int yyerror (char const *); int yyerror (char const *message) { - return fprintf (stderr, "%s\n", message); + fputs (message, stderr); + fputc ('\n', stderr); + return 0; }