opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit a6f4fdf684c40fecb091229e82995bf66e666fdf
parent be6639289c38a69b5edbb4d40d0bc3c56360379c
Author: tedu <tedu>
Date:   Wed,  5 Oct 2016 17:40:25 +0000

move yyparse decl next to yyfp

Diffstat:
Mdoas.c | 2+-
Mdoas.h | 2--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git 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 @@ -31,8 +31,6 @@ extern int parse_errors; char **prepenv(struct rule *); -int yyparse(void); - #define PERMIT 1 #define DENY 2