From: RĂ©mi Duraffort Date: Sun, 12 Sep 2010 16:34:25 +0000 (+0200) Subject: lua: cosmetics (use the exact pointer typer not just void*). X-Git-Tag: 1.2.0-pre1~5282 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=86ac0d4e75dc10fdaaf1da3ab3f6194cc73280f0 lua: cosmetics (use the exact pointer typer not just void*). --- diff --git a/modules/misc/lua/libs/dialog.c b/modules/misc/lua/libs/dialog.c index 7dbfbfc850..a2e0d14109 100644 --- a/modules/misc/lua/libs/dialog.c +++ b/modules/misc/lua/libs/dialog.c @@ -201,7 +201,7 @@ static int vlclua_dialog_create( lua_State *L ) lua_setfield( L, -2, "__dialog" ); lua_pop( L, 1 ); - extension_dialog_t **pp_dlg = lua_newuserdata( L, sizeof( void* ) ); + extension_dialog_t **pp_dlg = lua_newuserdata( L, sizeof( extension_dialog_t* ) ); *pp_dlg = p_dlg; if( luaL_newmetatable( L, "dialog" ) ) @@ -577,7 +577,7 @@ end_of_args: vlc_mutex_unlock( &p_dlg->lock ); /* Create meta table */ - extension_widget_t **pp_widget = lua_newuserdata( L, sizeof( void* ) ); + extension_widget_t **pp_widget = lua_newuserdata( L, sizeof( extension_widget_t* ) ); *pp_widget = p_widget; if( luaL_newmetatable( L, "widget" ) ) { diff --git a/modules/misc/lua/libs/input.c b/modules/misc/lua/libs/input.c index 6e0796d63f..1f38301141 100644 --- a/modules/misc/lua/libs/input.c +++ b/modules/misc/lua/libs/input.c @@ -246,7 +246,7 @@ static int vlclua_input_item_delete( lua_State *L ) static int vlclua_input_item_get( lua_State *L, input_item_t *p_item ) { vlc_gc_incref( p_item ); - input_item_t **pp = lua_newuserdata( L, sizeof( void* ) ); + input_item_t **pp = lua_newuserdata( L, sizeof( input_item_t* ) ); *pp = p_item; if( luaL_newmetatable( L, "input_item" ) )