diff options
-rw-r--r-- | bin/sh/mktokens | 4 | ||||
-rw-r--r-- | bin/sh/parser.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/mktokens b/bin/sh/mktokens index 8632dc1..e08997f 100644 --- a/bin/sh/mktokens +++ b/bin/sh/mktokens @@ -81,14 +81,14 @@ const char tokendlist[] = {' awk '{print "\t" $2 ","}' $temp echo '}; -char *const tokname[] = {' +const char *const tokname[] = {' sed -e 's/"/\\"/g' \ -e 's/[^ ]*[ ][ ]*[^ ]*[ ][ ]*\(.*\)/ "\1",/' \ $temp echo '}; ' sed 's/"//g' $temp | awk ' -/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "char *const parsekwd[] = {"} +/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "const char *const parsekwd[] = {"} /TIF/,/neverfound/{print " \"" $3 "\","}' echo ' 0 };' diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 6e0f23b..e885848 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -742,9 +742,9 @@ readtoken(void) */ if (t == TWORD && !quoteflag) { - char * const *pp; + const char * const *pp; - for (pp = (char **)parsekwd; *pp; pp++) { + for (pp = parsekwd; *pp; pp++) { if (**pp == *wordtext && equal(*pp, wordtext)) { lasttoken = t = pp - parsekwd + KWDOFFSET; |