diff options
author | 2006-07-13 16:17:24 +0000 | |
---|---|---|
committer | 2006-07-13 16:17:24 +0000 | |
commit | 241bfa8a0ca7c52c66fb48f6b9d97a0c7d8db4c2 (patch) | |
tree | 557c1d309a8eb4a749e016858ba12b5fd311d3fc /Gui/interface.c | |
parent | ad0c589f6bfcaed2ecd0caf06c6dc473d040142c (diff) |
drops casts from void * on malloc/calloc from the gui code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19066 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r-- | Gui/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Gui/interface.c b/Gui/interface.c index bdb2fc6187..eb1a4849ee 100644 --- a/Gui/interface.c +++ b/Gui/interface.c @@ -241,7 +241,7 @@ void guiInit( void ) case -2: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinCfgReadError,skinName ); exit( 0 ); } // --- initialize windows - if ( ( mplDrawBuffer = (unsigned char *)malloc( appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) + if ( ( mplDrawBuffer = malloc( appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) { fprintf( stderr,MSGTR_NEMDB ); exit( 0 ); @@ -1151,7 +1151,7 @@ void * gtkSet( int cmd,float fparam, void * vparam ) case gtkSetPanscan: { mp_cmd_t * mp_cmd; - mp_cmd=(mp_cmd_t *)calloc( 1,sizeof( *mp_cmd ) ); + mp_cmd=calloc( 1,sizeof( *mp_cmd ) ); mp_cmd->id=MP_CMD_PANSCAN; mp_cmd->name=strdup( "panscan" ); mp_cmd->args[0].v.f=fparam; mp_cmd->args[1].v.i=1; mp_input_queue_cmd( mp_cmd ); |