1
1

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

cstrstr().
Этот коммит содержится в:
Roland Illig 2005-05-23 11:28:10 +00:00
родитель caaf0730b6
Коммит 12641d520f
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

@ -553,7 +553,7 @@ search_content (Dlg_head *h, const char *directory, const char *filename)
pos = last_pos; 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)){ 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 */ if (found == 0){ /* Search in binary line once */