Module Name:    src
Committed By:   joerg
Date:           Thu Apr 23 00:29:00 UTC 2020

Modified Files:
        src/usr.sbin/pf/pfs: parse.y parser.h

Log Message:
lineno, states and allocated should be owned by the parser


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/pf/pfs/parse.y \
    src/usr.sbin/pf/pfs/parser.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/pf/pfs/parse.y
diff -u src/usr.sbin/pf/pfs/parse.y:1.2 src/usr.sbin/pf/pfs/parse.y:1.3
--- src/usr.sbin/pf/pfs/parse.y:1.2	Sat Oct 19 17:16:38 2013
+++ src/usr.sbin/pf/pfs/parse.y	Thu Apr 23 00:29:00 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.y,v 1.2 2013/10/19 17:16:38 christos Exp $ */
+/* $NetBSD: parse.y,v 1.3 2020/04/23 00:29:00 joerg Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: parse.y,v 1.2 2013/10/19 17:16:38 christos Exp $");
+__RCSID("$NetBSD: parse.y,v 1.3 2020/04/23 00:29:00 joerg Exp $");
 #endif
 
 #include <stdio.h>
@@ -50,6 +50,11 @@ __RCSID("$NetBSD: parse.y,v 1.2 2013/10/
 
 #include "parser.h"
 
+int lineno;
+
+struct pfioc_states* states;
+size_t allocated;
+
 // XXX it is really correct ?
 extern const char * const tcpstates[];
 
Index: src/usr.sbin/pf/pfs/parser.h
diff -u src/usr.sbin/pf/pfs/parser.h:1.2 src/usr.sbin/pf/pfs/parser.h:1.3
--- src/usr.sbin/pf/pfs/parser.h:1.2	Wed Aug 31 13:32:39 2011
+++ src/usr.sbin/pf/pfs/parser.h	Thu Apr 23 00:29:00 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.h,v 1.2 2011/08/31 13:32:39 joerg Exp $ */
+/* $NetBSD: parser.h,v 1.3 2020/04/23 00:29:00 joerg Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -34,9 +34,9 @@ __dead void yyfatal(const char*);
 int parse(FILE*, struct pfioc_states*);
 int yyparse(void);
 
-int lineno;
+extern int lineno;
 
-struct pfioc_states* states;
-size_t allocated;
+extern struct pfioc_states* states;
+extern size_t allocated;
 
 #endif /* _PARSER_H_*/

Reply via email to