From: tedu Date: Wed, 5 Oct 2016 17:40:25 +0000 (+0000) Subject: move yyparse decl next to yyfp X-Git-Tag: v6.6~72 X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=commitdiff_plain;h=a6f4fdf684c40fecb091229e82995bf66e666fdf move yyparse decl next to yyfp --- diff --git a/doas.c b/doas.c index 6c1b14d..a4686ef 100644 --- a/doas.c +++ b/doas.c @@ -160,6 +160,7 @@ static void parseconfig(const char *filename, int checkperms) { extern FILE *yyfp; + extern int yyparse(void); struct stat sb; yyfp = fopen(filename, "r"); @@ -176,7 +177,6 @@ parseconfig(const char *filename, int checkperms) errx(1, "%s is not owned by root", filename); } - yyparse(); fclose(yyfp); if (parse_errors) exit(1); diff --git a/doas.h b/doas.h index 0f96d1e..a371eb6 100644 --- a/doas.h +++ b/doas.h @@ -31,8 +31,6 @@ extern int parse_errors; char **prepenv(struct rule *); -int yyparse(void); - #define PERMIT 1 #define DENY 2