aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
authorJan Djärv2009-11-27 15:44:30 +0000
committerJan Djärv2009-11-27 15:44:30 +0000
commitc525b3f2d298a50fd86b0bc3bf5d07ed4301dfda (patch)
tree144e3114632afe107623751d0d0eccf044928b41 /src/search.c
parent6c6f788d8a5e09e2c3ffa2d5f7cfad6898825fd7 (diff)
downloademacs-c525b3f2d298a50fd86b0bc3bf5d07ed4301dfda.tar.gz
emacs-c525b3f2d298a50fd86b0bc3bf5d07ed4301dfda.zip
serach.c (simple_search): Remove warning by making *p const.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
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)
1612 EMACS_INT this_pos = pos; 1612 EMACS_INT this_pos = pos;
1613 EMACS_INT this_pos_byte = pos_byte; 1613 EMACS_INT this_pos_byte = pos_byte;
1614 int this_len = len; 1614 int this_len = len;
1615 unsigned char *p = pat + len_byte; 1615 const unsigned char *p = pat + len_byte;
1616 1616
1617 if (this_pos - len < lim || (pos_byte - len_byte) < lim_byte) 1617 if (this_pos - len < lim || (pos_byte - len_byte) < lim_byte)
1618 goto stop; 1618 goto stop;