From: Kovarththanan Rajaratnam Date: Thu, 18 Mar 2010 11:43:40 +0000 (+0100) Subject: Mark token array as const X-Git-Tag: v3.0pre1~86^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8d07ea50cafa04187db4a622c54fca7f7acd8bf;p=thirdparty%2Fccache.git Mark token array as const --- diff --git a/unify.c b/unify.c index 038705cb2..2dfecb206 100644 --- a/unify.c +++ b/unify.c @@ -40,7 +40,7 @@ #include #include -static char *s_tokens[] = { +static const char *const s_tokens[] = { "...", ">>=", "<<=", "+=", "-=", "*=", "/=", "%=", "&=", "^=", "|=", ">>", "<<", "++", "--", "->", "&&", "||", "<=", ">=", "==", "!=", ";", "{", "<%", "}", "%>", ",", ":", "=", @@ -61,7 +61,7 @@ static char *s_tokens[] = { static struct { unsigned char type; unsigned char num_toks; - char *toks[7]; + const char *toks[7]; } tokens[256]; /* build up the table used by the unifier */