diff options
Diffstat (limited to 'usr.sbin/btd/parse.y')
-rw-r--r-- | usr.sbin/btd/parse.y | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/btd/parse.y b/usr.sbin/btd/parse.y index a4f3a2d2c01..1cfda6aa29f 100644 --- a/usr.sbin/btd/parse.y +++ b/usr.sbin/btd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.2 2008/11/25 17:13:53 uwe Exp $ */ +/* $OpenBSD: parse.y,v 1.3 2010/08/03 18:42:40 henning Exp $ */ /* * Copyright (c) 2008 Uwe Stuehler <uwe@openbsd.org> @@ -367,9 +367,10 @@ yylex(void) return (0); if (next == quotec || c == ' ' || c == '\t') c = next; - else if (next == '\n') + else if (next == '\n') { + file->lineno++; continue; - else + } else lungetc(next); } else if (c == quotec) { *p = '\0'; |