Browse Source

Allow '=' to end a number in all lexers.

Requested and OK deraadt@
OPENBSD_4_3
mpf 17 years ago
parent
commit
e2ae46bb11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/parse.y

+ 2
- 2
src/usr.sbin/ntpd/parse.y View File

@ -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 <henning@openbsd.org> * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -477,7 +477,7 @@ yylex(void)
} }
#define allowed_to_end_number(x) \ #define allowed_to_end_number(x) \
(isspace(x) || x == ')' || x ==',' || x == '/' || x == '}')
(isspace(x) || x == ')' || x ==',' || x == '/' || x == '}' || x == '=')
if (c == '-' || isdigit(c)) { if (c == '-' || isdigit(c)) {
do { do {


Loading…
Cancel
Save