summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index c94da50..788129f 100644
--- a/parser.c
+++ b/parser.c
@@ -58,13 +58,13 @@ static void yyerror(const char *fmt, ...)
exit(1);
}
-static int input()
+static char input()
{
static char input_buf[128];
static unsigned input_pos;
static unsigned input_len;
int ret;
- int ch;
+ char ch;
if (scratch_pos) {
ch = scratch_buf[--scratch_pos];
@@ -148,7 +148,7 @@ static struct token yylex()
char buf[128];
char *p = buf;
int base;
- int ch;
+ char ch;
while ((ch = input()) && isspace(ch))
;