diff options
author | Wynn Wolf Arbor | 2020-03-18 19:45:08 +0100 |
---|---|---|
committer | Wolfgang Müller | 2021-04-27 12:28:22 +0200 |
commit | 78e4541a97ee90145fd630a363a69318e4dc972d (patch) | |
tree | e40ede3c563cd3ca6b395f6a4b40be70cba7a990 | |
parent | 5418e51f221e27a39944327eaed149e45d8227aa (diff) | |
download | cwm-78e4541a97ee90145fd630a363a69318e4dc972d.tar.gz |
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().
Diffstat (limited to '')
-rw-r--r-- | parse.y | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |