summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/bthidd/lexer.l
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2006-09-07 21:47:49 +0000
committeremax <emax@FreeBSD.org>2006-09-07 21:47:49 +0000
commit0a0c0e69a8b3191ef395c191f4667746e8f79f90 (patch)
tree2d993bc06bdf62dbb75a647125df678ab96cd3be /usr.sbin/bluetooth/bthidd/lexer.l
parentd04edc5790dab1504a82e507350c255aac246f8b (diff)
downloadFreeBSD-src-0a0c0e69a8b3191ef395c191f4667746e8f79f90.zip
FreeBSD-src-0a0c0e69a8b3191ef395c191f4667746e8f79f90.tar.gz
Update bthidd(8) code and hook it up to the build.
bthidd(8) now was integrated with vkbd(4) and supports multiple keyboards via vkbd(4)/kbdmux(4). The code was tested with Apple Bluetooth keyboard and SE k700i cell phone (remote control feature). MFC after: 1 month
Diffstat (limited to 'usr.sbin/bluetooth/bthidd/lexer.l')
-rw-r--r--usr.sbin/bluetooth/bthidd/lexer.l12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/bluetooth/bthidd/lexer.l b/usr.sbin/bluetooth/bthidd/lexer.l
index 93ad394..a25ae92 100644
--- a/usr.sbin/bluetooth/bthidd/lexer.l
+++ b/usr.sbin/bluetooth/bthidd/lexer.l
@@ -1,8 +1,10 @@
%{
/*
* lexer.l
- *
- * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com>
+ */
+
+/*-
+ * Copyright (c) 2006 Maksim Yevmenkin <m_evmenkin@yahoo.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,13 +28,15 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: lexer.l,v 1.2 2004/02/13 21:46:20 max Exp $
+ * $Id: lexer.l,v 1.3 2006/09/07 21:06:53 max Exp $
* $FreeBSD$
*/
#include <bluetooth.h>
#include <stdlib.h>
#include "parser.h"
+
+ int yylex (void);
%}
%option yylineno noyywrap nounput
@@ -87,7 +91,7 @@ hexbytestring 0x{hexbyte}
}
{hexbytestring} {
- char *ep = NULL;
+ char *ep;
yylval.num = strtoul(yytext, &ep, 16);
OpenPOWER on IntegriCloud