summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/pfctl/parse.y13
1 files changed, 2 insertions, 11 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 3b55309f7c8..86de99cf219 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.125 2002/07/19 13:23:37 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.126 2002/07/19 14:30:08 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2235,12 +2235,7 @@ lgetc(FILE *fin)
return (pushback_buffer[--pushback_index]);
while ((c = getc(fin)) == '\\') {
- while ((next = getc(fin)) == ' ')
- ;
- if (next == '#')
- do
- next = getc(fin);
- while (next != '\n' && next != EOF);
+ next = getc(fin);
if (next != '\n') {
ungetc(next, fin);
break;
@@ -2340,10 +2335,6 @@ top:
*p = '\0';
break;
}
- if (c == '#')
- do
- c = lgetc(fin);
- while (c != '\n' && c != EOF);
if (c == '\n')
continue;
if (p + 1 >= buf + sizeof(buf) - 1) {