* find.c: Removed a function cast by using the wrapper function

cstrstr().
This commit is contained in:
Roland Illig 2005-05-23 11:28:10 +00:00
parent caaf0730b6
commit 12641d520f
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
* command.c: Removed casts on function pointer types.
* util.h: Added const-preserving version of strstr().
* util.c: Likewise.
* find.c: Removed a function cast by using the wrapper function
cstrstr().
2005-05-22 Pavel Roskin <proski@gnu.org>

View File

@ -553,7 +553,7 @@ search_content (Dlg_head *h, const char *directory, const char *filename)
pos = last_pos;
}
search_func = (case_sensitive) ? (search_fn) strstr : cstrcasestr;
search_func = (case_sensitive) ? cstrstr : cstrcasestr;
while ((p = get_line_at (file_fd, buffer, &pos, &n_read, sizeof (buffer), &has_newline)) && (ret_val == 0)){
if (found == 0){ /* Search in binary line once */