changeset 106285:4248d7c5bed0

serach.c (simple_search): Remove warning by making *p const.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 27 Nov 2009 15:44:30 +0000
parents 894b96ba4f65
children 69ba8f3430e1
files src/ChangeLog src/search.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Nov 27 07:35:14 2009 +0000
+++ b/src/ChangeLog	Fri Nov 27 15:44:30 2009 +0000
@@ -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.
--- a/src/search.c	Fri Nov 27 07:35:14 2009 +0000
+++ b/src/search.c	Fri Nov 27 15:44:30 2009 +0000
@@ -1612,7 +1612,7 @@
 	    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;