X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/38609c34559fb86f2fb827dfed929ba9c396dc6f..1168b32295f6acde7a777d9519723fe276155b6b:/lib/yyerror.c?ds=sidebyside diff --git a/lib/yyerror.c b/lib/yyerror.c index 208ecccb..c9f492f8 100644 --- a/lib/yyerror.c +++ b/lib/yyerror.c @@ -1,6 +1,6 @@ /* Yacc library error-printing function. - Copyright (C) 2002, 2009 Free Software Foundation, Inc. + Copyright (C) 2002, 2009-2012 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -24,5 +24,7 @@ int yyerror (char const *); int yyerror (char const *message) { - return fprintf (stderr, "%s\n", message); + fputs (message, stderr); + fputc ('\n', stderr); + return 0; }