From: Todd C. Miller Date: Sat, 13 Aug 2011 17:39:56 +0000 (-0400) Subject: Do not declare yyparse() static as the actual function generated X-Git-Tag: SUDO_1_7_7~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14542e1aa8de241f7fd931eb620d39156ec3289f;p=sudo Do not declare yyparse() static as the actual function generated by yacc is extern. --HG-- branch : 1.7 --- diff --git a/getdate.c b/getdate.c index 7544c3f71..2aba77f32 100644 --- a/getdate.c +++ b/getdate.c @@ -112,7 +112,7 @@ static time_t yyRelSeconds; static int yyerror __P((char *s)); static int yylex __P((void)); -static int yyparse __P((void)); + int yyparse __P((void)); #line 107 "getdate.y" #ifndef YYSTYPE_DEFINED diff --git a/getdate.y b/getdate.y index 709408319..58a4a6ddd 100644 --- a/getdate.y +++ b/getdate.y @@ -100,7 +100,7 @@ static time_t yyRelSeconds; static int yyerror __P((char *s)); static int yylex __P((void)); -static int yyparse __P((void)); + int yyparse __P((void)); %}