summaryrefslogtreecommitdiffstats
path: root/hcid/lexer.l
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-12-13 13:58:56 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-12-13 13:58:56 +0000
commit6aa87b34ea5135cfb8dd403f1bfca8fe10172fd1 (patch)
treecffaa22e35fa88a17141b4024d21c2a08768ba32 /hcid/lexer.l
parent19812023eacc4a912db4adb92c040a02a50cdff7 (diff)
The big whitespace cleanup for hcid
Diffstat (limited to 'hcid/lexer.l')
-rw-r--r--hcid/lexer.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/hcid/lexer.l b/hcid/lexer.l
index 7f10ffda..1031ea51 100644
--- a/hcid/lexer.l
+++ b/hcid/lexer.l
@@ -107,7 +107,7 @@ bdaddr {hextuple}:{hextuple}:{hextuple}:{hextuple}:{hextuple}:{hextuple}
{kword} {
int kw = find_keyword(cfg_keyword, yytext);
- if( kw != -1 )
+ if( kw != -1 )
return kw;
yylval.str = yytext;
@@ -120,13 +120,13 @@ bdaddr {hextuple}:{hextuple}:{hextuple}:{hextuple}:{hextuple}:{hextuple}
}
{string} {
- if(yyleng > sizeof(str_buf)-1){
+ if(yyleng > sizeof(str_buf) - 1){
yyerror("string too long");
return 0;
}
- strncpy(str_buf, yytext+1, yyleng-2);
- str_buf[yyleng-2] = '\0';
+ strncpy(str_buf, yytext + 1, yyleng - 2);
+ str_buf[yyleng - 2] = '\0';
yylval.str = str_buf;
return STRING;
@@ -148,7 +148,7 @@ bdaddr {hextuple}:{hextuple}:{hextuple}:{hextuple}:{hextuple}:{hextuple}
%%
-int yywrap(void)
+int yywrap(void)
{
return 1;
}