Merge pull request #2306 from psychon/fix-2299

Fix function pointer casts in client.c
This commit is contained in:
mergify[bot] 2018-07-23 09:57:42 +00:00 committed by GitHub
commit 0958a44781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -2597,10 +2597,8 @@ luaA_client_tags(lua_State *L)
/** Get the first tag of a client.
*/
static int
luaA_client_get_first_tag(lua_State *L)
luaA_client_get_first_tag(lua_State *L, client_t *c)
{
client_t *c = luaA_checkudata(L, 1, &client_class);
foreach(tag, globalconf.tags)
if(is_client_tagged(c, *tag))
{
@ -3497,10 +3495,9 @@ luaA_client_keys(lua_State *L)
}
static int
luaA_client_get_icon_sizes(lua_State *L)
luaA_client_get_icon_sizes(lua_State *L, client_t *c)
{
int index = 1;
client_t *c = luaA_checkudata(L, 1, &client_class);
lua_newtable(L);
foreach (s, c->icons) {