# HG changeset patch # User Richard M. Stallman # Date 745359403 0 # Node ID ad4add779dac7a5af8e4f9302f7c111f909b31cd # Parent cd8eef9ec0c4cd2683ac52ea277bd85d43d82b74 (compile_pattern): Cast result of re_compile_pattern. diff -r cd8eef9ec0c4 -r ad4add779dac src/search.c --- a/src/search.c Sat Aug 14 19:52:32 1993 +0000 +++ b/src/search.c Sat Aug 14 20:16:43 1993 +0000 @@ -99,9 +99,8 @@ last_regexp = Qnil; bufp->translate = translate; BLOCK_INPUT; - val = re_compile_pattern ((char *) XSTRING (pattern)->data, - XSTRING (pattern)->size, - bufp); + val = (CONST char *) re_compile_pattern ((char *) XSTRING (pattern)->data, + XSTRING (pattern)->size, bufp); UNBLOCK_INPUT; if (val) {