From 182b2c936f938c5b95b2e83ddfc9cd581ff78649 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 3 Nov 2004 16:02:41 +0000 Subject: [PATCH] in do_replace_loop(), make real_current_x a const filestruct* again git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2048 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/proto.h | 5 +++-- src/search.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/proto.h b/src/proto.h index c0a2e16a..108a9c62 100644 --- a/src/proto.h +++ b/src/proto.h @@ -418,8 +418,9 @@ void replace_abort(void); int replace_regexp(char *string, bool create_flag); #endif char *replace_line(const char *needle); -ssize_t do_replace_loop(const char *needle, filestruct *real_current, - size_t *real_current_x, bool wholewords, bool *canceled); +ssize_t do_replace_loop(const char *needle, const filestruct + *real_current, size_t *real_current_x, bool wholewords, bool + *canceled); void do_replace(void); void do_gotoline(int line, bool save_pos); void do_gotoline_void(void); diff --git a/src/search.c b/src/search.c index d7be0080..7459a45f 100644 --- a/src/search.c +++ b/src/search.c @@ -654,8 +654,9 @@ char *replace_line(const char *needle) * needle is the string to seek. We replace it with answer. Return -1 * if needle isn't found, else the number of replacements performed. If * canceled isn't NULL, set it to TRUE if we canceled. */ -ssize_t do_replace_loop(const char *needle, filestruct *real_current, - size_t *real_current_x, bool wholewords, bool *canceled) +ssize_t do_replace_loop(const char *needle, const filestruct + *real_current, size_t *real_current_x, bool wholewords, bool + *canceled) { ssize_t numreplaced = -1; size_t match_len; -- 2.39.5