From: Richard M. Stallman Date: Sun, 13 Jul 1997 06:36:36 +0000 (+0000) Subject: (compile_pattern_1): Don't declare val with CONST. X-Git-Tag: emacs-20.1~1184 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d451e4dbed137a0c9b1f9e296c6cf6ca1a14f0c6;p=emacs.git (compile_pattern_1): Don't declare val with CONST. --- diff --git a/src/search.c b/src/search.c index 790f35fd626..6ac8ef21e6c 100644 --- a/src/search.c +++ b/src/search.c @@ -121,7 +121,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte) int posix; int multibyte; { - CONST char *val; + char *val; reg_syntax_t old; cp->regexp = Qnil; @@ -131,8 +131,8 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte) BLOCK_INPUT; old = re_set_syntax (RE_SYNTAX_EMACS | (posix ? 0 : RE_NO_POSIX_BACKTRACKING)); - val = (CONST char *) re_compile_pattern ((char *) XSTRING (pattern)->data, - XSTRING (pattern)->size, &cp->buf); + val = (char *) re_compile_pattern ((char *) XSTRING (pattern)->data, + XSTRING (pattern)->size, &cp->buf); re_set_syntax (old); UNBLOCK_INPUT; if (val)