diff options
Diffstat (limited to 'eqn/lookup.c')
| -rw-r--r-- | eqn/lookup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/eqn/lookup.c b/eqn/lookup.c index 7b303fe9e0d4..fb31d181aea3 100644 --- a/eqn/lookup.c +++ b/eqn/lookup.c @@ -33,8 +33,8 @@ tbl *keytbl[TBLSIZE]; /* key words */ tbl *restbl[TBLSIZE]; /* reserved words */ tbl *deftbl[TBLSIZE]; /* user-defined names */ -struct { - char *key; +static struct { + const char *key; int keyval; } keyword[] ={ { "sub", SUB }, @@ -104,9 +104,9 @@ struct { { NULL, 0 } }; -struct { - char *res; - char *resval; +static struct { + const char *res; + const char *resval; } resword[] ={ { ">=", "\\(>=" }, { "<=", "\\(<=" }, @@ -220,11 +220,11 @@ struct { }; tbl * -lookup(tbl **tblp, char *name, char *defn) /* find name in tbl. if defn non-null, install */ +lookup(tbl **tblp, const char *name, const char *defn) /* find name in tbl. if defn non-null, install */ { register tbl *p; register int h; - register unsigned char *s = (unsigned char *)name; + register unsigned const char *s = (unsigned const char *)name; for (h = 0; *s != '\0'; ) h += *s++; |
