summaryrefslogtreecommitdiff
path: root/readline-4.3/histexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline-4.3/histexpand.c')
-rw-r--r--readline-4.3/histexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readline-4.3/histexpand.c b/readline-4.3/histexpand.c
index 6c81196..5ed8bae 100644
--- a/readline-4.3/histexpand.c
+++ b/readline-4.3/histexpand.c
@@ -211,8 +211,8 @@ get_history_event (string, caller_index, delimiting_quote)
memset (&ps, 0, sizeof (mbstate_t));
/* These produce warnings because we're passing a const string to a
function that takes a non-const string. */
- _rl_adjust_point (string, i, &ps);
- if ((v = _rl_get_char_len (string + i, &ps)) > 1)
+ _rl_adjust_point ((char *)string, i, &ps);
+ if ((v = _rl_get_char_len ((char *)string + i, &ps)) > 1)
{
i += v - 1;
continue;