summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-23 23:00:04 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-23 23:00:04 +0100
commit57323fa71effad75d78b36a45d5457b1bd782963 (patch)
tree50d7a5bacacebcdf59d5bf38dff84c83bf557d31 /src/plugins/scripts/ruby
parent14feea7ab84df3e367bc3732e8ba1470e1a3f5a7 (diff)
downloadweechat-57323fa71effad75d78b36a45d5457b1bd782963.zip
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
Diffstat (limited to 'src/plugins/scripts/ruby')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 1736ecda6..dc32998c6 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -198,7 +198,7 @@ weechat_ruby_exec (struct t_plugin_script *script,
}
else if ((TYPE(rc) == T_FIXNUM) && (ret_type == WEECHAT_SCRIPT_EXEC_INT))
{
- ret_i = (int *)malloc (sizeof (int));
+ ret_i = malloc (sizeof (*ret_i));
if (ret_i)
*ret_i = NUM2INT(rc);
ret_value = ret_i;