summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/search.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 574dfae329a..495e712c646 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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.
diff --git a/src/search.c b/src/search.c
index abbad764c3c..05db2bef98b 100644
--- a/src/search.c
+++ b/src/search.c
@@ -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;