From: Todd C. Miller Date: Tue, 7 Jun 2011 15:45:06 +0000 (-0400) Subject: Do not declare yyparse() static as the actual function generated X-Git-Tag: SUDO_1_8_2~73^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c4a5e905c98ec49b776705f8d6108025b72cfd6;p=sudo Do not declare yyparse() static as the actual function generated by yacc is extern. --- diff --git a/plugins/sudoers/getdate.c b/plugins/sudoers/getdate.c index cb6aac517..f12d3940e 100644 --- a/plugins/sudoers/getdate.c +++ b/plugins/sudoers/getdate.c @@ -112,7 +112,7 @@ static time_t yyRelSeconds; static int yyerror(char *s); static int yylex(void); -static int yyparse(void); + int yyparse(void); #line 107 "getdate.y" #ifndef YYSTYPE_DEFINED diff --git a/plugins/sudoers/getdate.y b/plugins/sudoers/getdate.y index 13483ff31..5ebe29eca 100644 --- a/plugins/sudoers/getdate.y +++ b/plugins/sudoers/getdate.y @@ -100,7 +100,7 @@ static time_t yyRelSeconds; static int yyerror(char *s); static int yylex(void); -static int yyparse(void); + int yyparse(void); %}