summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-27 05:21:13 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-27 05:21:13 +0000
commit24795de83b9f2b24bd128707770387bcddad4367 (patch)
tree04d63507cb818ca99c331359558b6fa989cd559c
parent6709e54559ae9f94749c5401579b03716400eb02 (diff)
Fix the yyunput warning message
-rw-r--r--hcid/lexer.l2
-rw-r--r--rfcomm/lexer.l2
2 files changed, 4 insertions, 0 deletions
diff --git a/hcid/lexer.l b/hcid/lexer.l
index f4559494..7d9d6ada 100644
--- a/hcid/lexer.l
+++ b/hcid/lexer.l
@@ -51,6 +51,8 @@ int yyerror(char *str);
%}
+%option nounput
+
hex 0x[0-9a-zA-Z]+
num [0-9]+
kword [A-Za-z0-9\_\-]+
diff --git a/rfcomm/lexer.l b/rfcomm/lexer.l
index 70e1be81..9988243f 100644
--- a/rfcomm/lexer.l
+++ b/rfcomm/lexer.l
@@ -44,6 +44,8 @@ int yyerror(char *str);
%}
+%option nounput
+
space [ \t]
linebreak \n
comment \#.*\n