Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c525b3f2
Commit
c525b3f2
authored
Nov 27, 2009
by
Jan Djärv
Browse files
serach.c (simple_search): Remove warning by making *p const.
parent
6c6f788d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/ChangeLog
src/ChangeLog
+4
-0
src/search.c
src/search.c
+1
-1
No files found.
src/ChangeLog
View file @
c525b3f2
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.
...
...
src/search.c
View file @
c525b3f2
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment