X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/cf33c228e08142e3ef715105a191db24ec980ca8..f038e56cdc211396f54f138e95693d0906d6fafa:/lib/yyerror.c diff --git a/lib/yyerror.c b/lib/yyerror.c index 5eb339fa..3aeb5cef 100644 --- a/lib/yyerror.c +++ b/lib/yyerror.c @@ -1,6 +1,6 @@ /* Yacc library error-printing function. - Copyright (C) 2002, 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2002, 2009-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -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; }