=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/doas/parse.y,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/usr.bin/doas/parse.y 2016/09/04 15:11:13 1.21 +++ src/usr.bin/doas/parse.y 2016/09/15 00:58:23 1.22 @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.21 2016/09/04 15:11:13 tedu Exp $ */ +/* $OpenBSD: parse.y,v 1.22 2016/09/15 00:58:23 deraadt Exp $ */ /* * Copyright (c) 2015 Ted Unangst * @@ -46,13 +46,14 @@ FILE *yyfp; struct rule **rules; -int nrules, maxrules; +int nrules; +static int maxrules; + int parse_errors = 0; -int obsolete_warned = 0; +static int obsolete_warned = 0; -void yyerror(const char *, ...); -int yylex(void); -int yyparse(void); +static void yyerror(const char *, ...); +static int yylex(void); %} @@ -205,7 +206,7 @@ parse_errors++; } -struct keyword { +static struct keyword { const char *word; int token; } keywords[] = {