From 77dc4f6080513b9ea76e12b3e0e6b8ff9d93449c Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 21 Jul 2016 10:22:30 +0000 Subject: MirLua: fix redundant (char*) cast git-svn-id: http://svn.miranda-ng.org/main/trunk@17115 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_protocols.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/MirLua/src/m_protocols.cpp') diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp index 423d732c32..889be34a42 100644 --- a/plugins/MirLua/src/m_protocols.cpp +++ b/plugins/MirLua/src/m_protocols.cpp @@ -97,8 +97,7 @@ static int lua_ChainSend(lua_State *L) WPARAM wParam = (WPARAM)luaM_tomparam(L, 3); LPARAM lParam = (LPARAM)luaM_tomparam(L, 4); - CCSDATA ccs = { hContact, service, wParam, lParam }; - INT_PTR res = Proto_ChainSend(0, &ccs); + INT_PTR res = ProtoChainSend(hContact, service, wParam, lParam); lua_pushinteger(L, res); return 1; @@ -111,8 +110,7 @@ static int lua_ChainRecv(lua_State *L) WPARAM wParam = (WPARAM)luaM_tomparam(L, 3); LPARAM lParam = (LPARAM)luaM_tomparam(L, 4); - CCSDATA ccs = { hContact, service, wParam, lParam }; - INT_PTR res = Proto_ChainRecv(0, &ccs); + INT_PTR res = ProtoChainRecv(hContact, service, wParam, lParam); lua_pushinteger(L, res); return 1; -- cgit v1.2.3