summaryrefslogtreecommitdiff
path: root/ext/readline/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline/readline.c')
-rw-r--r--ext/readline/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 87a1ff03715..7912989c218 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -1176,7 +1176,7 @@ Init_readline()
VALUE history, fcomp, ucomp, version;
/* Allow conditional parsing of the ~/.inputrc file. */
- rl_readline_name = "Ruby";
+ rl_readline_name = (char *)"Ruby";
using_history();
@@ -1287,7 +1287,7 @@ Init_readline()
#else
{
HIST_ENTRY *entry = remove_history(0);
- free(entry->line);
+ free((char *)entry->line);
free(entry);
}
#endif