]> granicus.if.org Git - sudo/commitdiff
Do not declare yyparse() static as the actual function generated
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Jun 2011 15:45:06 +0000 (11:45 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Jun 2011 15:45:06 +0000 (11:45 -0400)
by yacc is extern.

plugins/sudoers/getdate.c
plugins/sudoers/getdate.y

index cb6aac5174da2bad5da8aab0c28b2a129e9499eb..f12d3940ee8e958f1ec9ae2911ed398441e5ce8e 100644 (file)
@@ -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
index 13483ff31ff1459ad1a876991b27f3c22ea6a3e4..5ebe29ecac35fef65b14992b6fb0ca1350bbd009 100644 (file)
@@ -100,7 +100,7 @@ static time_t       yyRelSeconds;
 
 static int     yyerror(char *s);
 static int     yylex(void);
-static int     yyparse(void);
+       int     yyparse(void);
 
 %}