summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2010-08-04 18:24:50 +0000
committermillert <millert@openbsd.org>2010-08-04 18:24:50 +0000
commit74abbd1e18c4fe0e2070cf6ccb277d45b3929414 (patch)
treeac1933a9e145bb103b46432a8d47bceca7a9f79a
parentRemove unused code, conditional in fixup node was never true (diff)
downloadwireguard-openbsd-74abbd1e18c4fe0e2070cf6ccb277d45b3929414.tar.xz
wireguard-openbsd-74abbd1e18c4fe0e2070cf6ccb277d45b3929414.zip
Add missing #ifndef YY_NO_INPUT around the input() function when
"%option noinput" is specified. OK deraadt@
-rw-r--r--usr.bin/lex/flex.skl8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/lex/flex.skl b/usr.bin/lex/flex.skl
index cd935b13904..c9843bacba1 100644
--- a/usr.bin/lex/flex.skl
+++ b/usr.bin/lex/flex.skl
@@ -1,9 +1,9 @@
-/* $OpenBSD: flex.skl,v 1.10 2007/01/26 14:38:19 tsi Exp $ */
+/* $OpenBSD: flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $ */
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $Header: /home/cvs/src/usr.bin/lex/flex.skl,v 1.10 2007/01/26 14:38:19 tsi Exp $
+ * $Header: /home/cvs/src/usr.bin/lex/flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $
*/
#define FLEX_SCANNER
@@ -975,6 +975,7 @@ void yyFlexLexer::yyunput( int c, register char* yy_bp )
%-
+#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput()
#else
@@ -1050,6 +1051,9 @@ int yyFlexLexer::yyinput()
return c;
}
+%-
+#endif /* ifndef YY_NO_INPUT */
+%*
%-