diff options
Diffstat (limited to 'readline')
-rw-r--r-- | readline/bind.c | 2 | ||||
-rw-r--r-- | readline/isearch.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/readline/bind.c b/readline/bind.c index f446dc8cd10..3b311a9e920 100644 --- a/readline/bind.c +++ b/readline/bind.c @@ -1371,7 +1371,7 @@ rl_variable_bind (name, value) v[end] = '\0'; /* The value starts at v + beg. Translate it into a character string. */ _rl_isearch_terminators = (unsigned char *)xmalloc (2 * strlen (v) + 1); - rl_translate_keyseq (v + beg, _rl_isearch_terminators, &end); + rl_translate_keyseq (v + beg, (char*) _rl_isearch_terminators, &end); _rl_isearch_terminators[end] = '\0'; free (v); } diff --git a/readline/isearch.c b/readline/isearch.c index 67279e18924..ae8dce520f0 100644 --- a/readline/isearch.c +++ b/readline/isearch.c @@ -264,7 +264,7 @@ rl_search_history (direction, invoking_key) variable isearch-terminators) are used to terminate the search but not subsequently execute the character as a command. The default value is "\033\012" (ESC and C-J). */ - if (strchr (isearch_terminators, c)) + if (strchr((char*) isearch_terminators, c)) #endif { /* ESC still terminates the search, but if there is pending |