[vlc-commits] commit: lua: cosmetics (use the exact pointer typer not just void*). ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Sun Sep 12 18:35:15 CEST 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Sep 12 18:34:25 2010 +0200| [86ac0d4e75dc10fdaaf1da3ab3f6194cc73280f0] | committer: Rémi Duraffort
lua: cosmetics (use the exact pointer typer not just void*).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86ac0d4e75dc10fdaaf1da3ab3f6194cc73280f0
---
modules/misc/lua/libs/dialog.c | 4 ++--
modules/misc/lua/libs/input.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/misc/lua/libs/dialog.c b/modules/misc/lua/libs/dialog.c
index 7dbfbfc..a2e0d14 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 6e0796d..1f38301 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" ) )
More information about the vlc-commits
mailing list