mirror of
https://github.com/brunoos/luasec.git
synced 2025-02-13 15:32:48 +01:00
Remove warning from cast.
This commit is contained in:
parent
c810df6839
commit
7898bd2043
@ -842,9 +842,9 @@ static int meth_tlsa(lua_State *L)
|
|||||||
int ret;
|
int ret;
|
||||||
size_t len;
|
size_t len;
|
||||||
p_ssl ssl = (p_ssl)luaL_checkudata(L, 1, "SSL:Connection");
|
p_ssl ssl = (p_ssl)luaL_checkudata(L, 1, "SSL:Connection");
|
||||||
uint8_t usage = luaL_checkinteger(L, 2);
|
uint8_t usage = (uint8_t)luaL_checkinteger(L, 2);
|
||||||
uint8_t selector = luaL_checkinteger(L, 3);
|
uint8_t selector = (uint8_t)luaL_checkinteger(L, 3);
|
||||||
uint8_t mtype = luaL_checkinteger(L, 4);
|
uint8_t mtype = (uint8_t)luaL_checkinteger(L, 4);
|
||||||
unsigned char *data = (unsigned char*)luaL_checklstring(L, 5, &len);
|
unsigned char *data = (unsigned char*)luaL_checklstring(L, 5, &len);
|
||||||
|
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user