summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ifstated
diff options
context:
space:
mode:
authormpf <mpf@openbsd.org>2007-10-16 20:01:23 +0000
committermpf <mpf@openbsd.org>2007-10-16 20:01:23 +0000
commit0cf2c9c38332af6723d921721b5fc9d4f90dfa99 (patch)
tree7cb029d4b214b1400525847a647d0a8d99667cec /usr.sbin/ifstated
parentMake lazy fpu context switching work for MULTIPROCESSOR kernels. Tested by (diff)
downloadwireguard-openbsd-0cf2c9c38332af6723d921721b5fc9d4f90dfa99.tar.xz
wireguard-openbsd-0cf2c9c38332af6723d921721b5fc9d4f90dfa99.zip
Allow '=' to end a number in all lexers.
Requested and OK deraadt@
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r--usr.sbin/ifstated/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y
index 7cce4e88cf0..4f9b26bd4e9 100644
--- a/usr.sbin/ifstated/parse.y
+++ b/usr.sbin/ifstated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.21 2007/10/16 06:06:49 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.22 2007/10/16 20:01:23 mpf Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@@ -596,7 +596,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 {