From 78e4541a97ee90145fd630a363a69318e4dc972d Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 18 Mar 2020 19:45:08 +0100 Subject: Revert "use u_char for buffers in yylex" This reverts commit 603548105b9bf9ffd11eb053e62db99f9433e821. Using u_char instead of char will generate signedness warnings for strtonum(), lookup(), and xstrdup(). --- parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index c1bf8c5..9a018fe 100644 --- a/parse.y +++ b/parse.y @@ -361,9 +361,9 @@ lookup(char *s) #define MAXPUSHBACK 128 -u_char *parsebuf; +char *parsebuf; int parseindex; -u_char pushback_buffer[MAXPUSHBACK]; +char pushback_buffer[MAXPUSHBACK]; int pushback_index = 0; int @@ -456,8 +456,8 @@ findeol(void) int yylex(void) { - u_char buf[8096]; - u_char *p; + char buf[8096]; + char *p; int quotec, next, c; int token; @@ -502,7 +502,7 @@ yylex(void) yyerror("string too long"); return (findeol()); } - *p++ = c; + *p++ = (char)c; } yylval.v.string = xstrdup(buf); return (STRING); -- cgit v1.2.3-2-gb3c3