mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* find.c: Removed a function cast by using the wrapper function
cstrstr().
This commit is contained in:
parent
caaf0730b6
commit
12641d520f
@ -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>
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user