summaryrefslogtreecommitdiffstats
path: root/contrib/one-true-awk/maketab.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-12-13 04:59:48 +0000
committerobrien <obrien@FreeBSD.org>2002-12-13 04:59:48 +0000
commit279a30e7a9812f477c5991f0df7082a9736bdc00 (patch)
tree59f89c7c67df8769e65e35d1054fb5407fb18d12 /contrib/one-true-awk/maketab.c
parent4911d68e89b7b39eeb1d42f4e510a4c6c5d26bd3 (diff)
downloadFreeBSD-src-279a30e7a9812f477c5991f0df7082a9736bdc00.zip
FreeBSD-src-279a30e7a9812f477c5991f0df7082a9736bdc00.tar.gz
Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.
Diffstat (limited to 'contrib/one-true-awk/maketab.c')
-rw-r--r--contrib/one-true-awk/maketab.c8
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;
OpenPOWER on IntegriCloud