diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-30 05:33:40 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-30 05:33:40 +0000 |
commit | 72b907ebc3d1e77a3d9905c125d5b41536a95735 (patch) | |
tree | aba4a342641611b5a440a764a70790760d7e9b50 /bin/systrace/parse.y | |
parent | e6f7bd2256b4a652c665aa93ed855cdb959cd76c (diff) |
extern decls should be outside of function.
Diffstat (limited to 'bin/systrace/parse.y')
-rw-r--r-- | bin/systrace/parse.y | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/systrace/parse.y b/bin/systrace/parse.y index a1fec1a078d..c1cdd499396 100644 --- a/bin/systrace/parse.y +++ b/bin/systrace/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.6 2002/07/19 14:38:58 itojun Exp $ */ +/* $OpenBSD: parse.y,v 1.7 2002/07/30 05:33:39 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> @@ -59,9 +59,12 @@ struct logic *parse_newsymbol(char *, int, char *); int yylex(void); int yyparse(void); +int yyerror(const char *, ...); int errors = 0; struct filter *myfilter; +extern char *mystring; +extern int myoff; %} @@ -278,10 +281,8 @@ action : PERMIT } %% -int yyerror(char *, ...); - int -yyerror(char *fmt, ...) +yyerror(const char *fmt, ...) { va_list ap; errors = 1; @@ -322,9 +323,6 @@ parse_newsymbol(char *type, int typeoff, char *data) int parse_filter(char *name, struct filter **pfilter) { - extern char *mystring; - extern int myoff; - extern struct filter *myfilter; errors = 0; |