diff options
author | rlar <rlar> | 2016-02-28 20:11:49 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-02-29 20:07:58 -0500 |
commit | 967819769eab880caa9aaf3a13605b0516e44b06 (patch) | |
tree | 82d7bd7734f53949bd228b0a9f7b57f4620d556c /src/scan.l | |
parent | b7b97894692b14b7ee1a1e908d7d3a4ddc57cee7 (diff) |
ndinstal(), char *, to get rid of casts and warnings
Diffstat (limited to 'src/scan.l')
-rw-r--r-- | src/scan.l | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -135,7 +135,7 @@ M4QEND "]]" int doing_codeblock = false; int i, brace_depth=0, brace_start_line=0; - unsigned char nmdef[MAXLINE]; + char nmdef[MAXLINE]; <INITIAL>{ @@ -293,7 +293,7 @@ M4QEND "]]" {NOT_WS}[^\r\n]* { if(yyleng < MAXLINE) { - strcpy( (char *) nmdef, yytext ); + strcpy( nmdef, yytext ); } else { @@ -301,7 +301,7 @@ M4QEND "]]" FLEX_EXIT(EXIT_FAILURE); } /* Skip trailing whitespace. */ - for ( i = strlen( (char *) nmdef ) - 1; + for ( i = strlen( nmdef ) - 1; i >= 0 && (nmdef[i] == ' ' || nmdef[i] == '\t'); --i ) ; |