From e2ae46bb1122ba9691eb4685dd66f1f3bec2216d Mon Sep 17 00:00:00 2001 From: mpf <> Date: Tue, 16 Oct 2007 20:01:23 +0000 Subject: [PATCH] Allow '=' to end a number in all lexers. Requested and OK deraadt@ --- src/usr.sbin/ntpd/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/parse.y b/src/usr.sbin/ntpd/parse.y index 79d33b5d..7e69dcf9 100644 --- a/src/usr.sbin/ntpd/parse.y +++ b/src/usr.sbin/ntpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.38 2007/10/16 06:06:49 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.39 2007/10/16 20:01:23 mpf Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -477,7 +477,7 @@ yylex(void) } #define allowed_to_end_number(x) \ - (isspace(x) || x == ')' || x ==',' || x == '/' || x == '}') + (isspace(x) || x == ')' || x ==',' || x == '/' || x == '}' || x == '=') if (c == '-' || isdigit(c)) { do {