aboutsummaryrefslogtreecommitdiffstats
path: root/src/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/tty.c b/src/tty.c
index 43b5e86..62af184 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.23 2008/03/06 16:49:39 james
+ * *** empty log message ***
+ *
* Revision 1.22 2008/03/06 16:49:05 james
* *** empty log message ***
*
@@ -528,11 +531,11 @@ tty_parser_new (void)
return p;
}
-int
+int
tty_parse (Context * c, uint8_t * buf, int len)
{
TTY_Parser *p;
- int err=0;
+ int err = 0;
p = c->tp;
@@ -546,7 +549,7 @@ tty_parse (Context * c, uint8_t * buf, int len)
{
case DLE:
tty_bit_analyse (c, 0, *buf);
- err+=utf8_parse (c, *buf);
+ err += utf8_parse (c, *buf);
break;
case 0:
p->in_errmark = 1;
@@ -567,9 +570,9 @@ tty_parse (Context * c, uint8_t * buf, int len)
tty_analyse (c);
- err+=utf8_parse (c, *buf);
+ err += utf8_parse (c, *buf);
- err+=utf8_parse (c, SYM_CHAR_RESET);
+ err += utf8_parse (c, SYM_CHAR_RESET);
}
else if (*buf == DLE)
@@ -583,10 +586,10 @@ tty_parse (Context * c, uint8_t * buf, int len)
tty_analyse (c);
- err+=utf8_parse (c, *buf);
+ err += utf8_parse (c, *buf);
}
buf++;
}
-return err;
+ return err;
}