]> git.eshelyaron.com Git - emacs.git/commitdiff
serach.c (simple_search): Remove warning by making *p const.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Nov 2009 15:44:30 +0000 (15:44 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Nov 2009 15:44:30 +0000 (15:44 +0000)
src/ChangeLog
src/search.c

index 574dfae329ad3d105a134f634a2d8cecd0d72823..495e712c6460b4b1dd6a4334b14f83a7c7aff146 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * search.c (simple_search): Remove warning by making *p const.
+
 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * xdisp.c (power_letter): Remove duplicate const.
index abbad764c3c41a9ad7b2b62d66e78c701f6a22dc..05db2bef98b73b0e74cccdf801724d79d9834313 100644 (file)
@@ -1612,7 +1612,7 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
            EMACS_INT this_pos = pos;
            EMACS_INT this_pos_byte = pos_byte;
            int this_len = len;
-           unsigned char *p = pat + len_byte;
+           const unsigned char *p = pat + len_byte;
 
            if (this_pos - len < lim || (pos_byte - len_byte) < lim_byte)
              goto stop;