diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-17 10:20:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-17 10:20:07 +0000 |
commit | 67da4aebc56b1a1058ab17e256f7d64b6b8bbd90 (patch) | |
tree | 484a8e9c401de33cf9d187990283579145157462 /ext/readline | |
parent | 28028fc2b92dfe13b4e53cb0db5ece74064e76a6 (diff) | |
download | ruby-67da4aebc56b1a1058ab17e256f7d64b6b8bbd90.tar.gz |
* configure.in (darwin): get rid of strange settings issue of
apple gcc port, which searches /usr/local/include always but
/usr/local/lib not.
* ext/readline/readline.c (Init_readline): suppress warnings with
libedit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 87a1ff0371..7912989c21 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 |