summaryrefslogtreecommitdiff
path: root/eqn/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'eqn/lex.c')
-rw-r--r--eqn/lex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/eqn/lex.c b/eqn/lex.c
index 2e7884efc170..6815801c92d3 100644
--- a/eqn/lex.c
+++ b/eqn/lex.c
@@ -34,12 +34,12 @@
extern YYSTYPE yyval;
#define SSIZE 400
-char token[SSIZE];
-int sp;
+static char token[SSIZE];
+static int sp;
#define putbak(c) *ip++ = c;
#define PUSHBACK 300 /* maximum pushback characters */
-char ibuf[PUSHBACK+SSIZE]; /* pushback buffer for definitions, etc. */
-char *ip = ibuf;
+static char ibuf[PUSHBACK+SSIZE]; /* pushback buffer for definitions, etc. */
+static char *ip = ibuf;
int
gtc(void) {
@@ -77,9 +77,9 @@ openinfile(void)
}
void
-pbstr(register char *str)
+pbstr(register const char *str)
{
- register char *p;
+ register const char *p;
p = str;
while (*p++);