]> git.eshelyaron.com Git - emacs.git/commitdiff
(compile_pattern_1): Don't declare val with CONST.
authorRichard M. Stallman <rms@gnu.org>
Sun, 13 Jul 1997 06:36:36 +0000 (06:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 13 Jul 1997 06:36:36 +0000 (06:36 +0000)
src/search.c

index 790f35fd62603d85b498ea21d2fea788b716e221..6ac8ef21e6c032ffbc7e13ce97c69b05b8320b5d 100644 (file)
@@ -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)