summaryrefslogtreecommitdiff
path: root/gcc/tradcif.y
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tradcif.y')
-rw-r--r--gcc/tradcif.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tradcif.y b/gcc/tradcif.y
index 771f9d2e25e..e59fd1e5b7c 100644
--- a/gcc/tradcif.y
+++ b/gcc/tradcif.y
@@ -285,15 +285,15 @@ parse_number (olen)
}
struct token {
- const char *operator;
- int token;
+ const char *const operator;
+ const int token;
};
#ifndef NULL
#define NULL 0
#endif
-static struct token tokentab2[] = {
+static const struct token tokentab2[] = {
{"&&", AND},
{"||", OR},
{"<<", LSH},
@@ -313,7 +313,7 @@ yylex ()
register int c;
register int namelen;
register const char *tokstart;
- register struct token *toktab;
+ register const struct token *toktab;
retry: