diff options
Diffstat (limited to 'contrib/one-true-awk/maketab.c')
-rw-r--r-- | contrib/one-true-awk/maketab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/one-true-awk/maketab.c b/contrib/one-true-awk/maketab.c index 10a038c..a352140 100644 --- a/contrib/one-true-awk/maketab.c +++ b/contrib/one-true-awk/maketab.c @@ -36,8 +36,8 @@ THIS SOFTWARE. struct xx { int token; - char *name; - char *pname; + const char *name; + const char *pname; } proc[] = { { PROGRAM, "program", NULL }, { BOR, "boolop", " || " }, @@ -107,12 +107,12 @@ struct xx }; #define SIZE (LASTTOKEN - FIRSTTOKEN + 1) -char *table[SIZE]; +const char *table[SIZE]; char *names[SIZE]; int main(int argc, char *argv[]) { - struct xx *p; + const struct xx *p; int i, n, tok; char c; FILE *fp; |