From 3dcf497216944dda8e4b01df18691483ed887352 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 16 Aug 2004 17:53:07 +0000 Subject: [PATCH] Added more const-ness to variables. --- edit/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/syntax.c b/edit/syntax.c index 745bf2893..5b5f58445 100644 --- a/edit/syntax.c +++ b/edit/syntax.c @@ -307,7 +307,7 @@ static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i, } /* check to turn on a keyword */ if (!_rule.keyword) { - char *p; + const char *p; p = (r = edit->rules[_rule.context])->keyword_first_chars; if (p) while (*(p = xx_strchr ((unsigned char *) p + 1, c))) { @@ -377,7 +377,7 @@ static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i, } /* check again to turn on a keyword if the context switched */ if (contextchanged && !_rule.keyword) { - char *p; + const char *p; p = (r = edit->rules[_rule.context])->keyword_first_chars; while (*(p = xx_strchr ((unsigned char *) p + 1, c))) { struct key_word *k;