summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2007-10-16 20:01:24 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2007-10-16 20:01:24 +0000
commitaa07a191ee973728e771b15522d6ef7600994fb4 (patch)
treeb73be04253667d59e3b23b2d6f8d6231435d8216 /usr.sbin/ripd
parent2aea4e1f69df9a598eff00e01018d7dc7d96751b (diff)
Allow '=' to end a number in all lexers.
Requested and OK deraadt@
Diffstat (limited to 'usr.sbin/ripd')
-rw-r--r--usr.sbin/ripd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripd/parse.y b/usr.sbin/ripd/parse.y
index 14164dd322e..ed390909900 100644
--- a/usr.sbin/ripd/parse.y
+++ b/usr.sbin/ripd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.11 2007/10/16 06:06:49 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.12 2007/10/16 20:01:23 mpf Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -590,7 +590,7 @@ top:
}
#define allowed_to_end_number(x) \
- (isspace(x) || x == ')' || x ==',' || x == '/' || x == '}')
+ (isspace(x) || x == ')' || x ==',' || x == '/' || x == '}' || x == '=')
if (c == '-' || isdigit(c)) {
do {