From a965be6802bbc601096c4186d3e338652b6c9bd2 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 22 Oct 2008 12:58:05 +0200 Subject: Add function buffer_set_pointer in plugin API --- src/plugins/scripts/lua/weechat-lua-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/scripts/lua/weechat-lua-api.c') diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c index a126669f8..081a2e083 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.c +++ b/src/plugins/scripts/lua/weechat-lua-api.c @@ -3871,7 +3871,7 @@ weechat_lua_api_buffer_set (lua_State *L) property = lua_tostring (lua_current_interpreter, -2); value = lua_tostring (lua_current_interpreter, -1); - weechat_buffer_set (script_str2ptr (buffer), property, (void *)value); + weechat_buffer_set (script_str2ptr (buffer), property, value); LUA_RETURN_OK; } @@ -4530,7 +4530,7 @@ weechat_lua_api_bar_set (lua_State *L) weechat_buffer_set (script_str2ptr (bar), property, - (void *)value); + value); LUA_RETURN_OK; } -- cgit v1.2.3