Mercurial > mplayer.hg
diff libmpdemux/network.c @ 19062:83c3afeab35d
drops casts from void * on malloc/calloc from libmpdemux code
author | reynaldo |
---|---|
date | Thu, 13 Jul 2006 16:41:13 +0000 |
parents | 028e4c7a749e |
children | 5e767cabf4cd |
line wrap: on
line diff
--- a/libmpdemux/network.c Thu Jul 13 16:17:24 2006 +0000 +++ b/libmpdemux/network.c Thu Jul 13 16:41:13 2006 +0000 @@ -96,7 +96,7 @@ streaming_ctrl_t * streaming_ctrl_new(void) { streaming_ctrl_t *streaming_ctrl; - streaming_ctrl = (streaming_ctrl_t*)malloc(sizeof(streaming_ctrl_t)); + streaming_ctrl = malloc(sizeof(streaming_ctrl_t)); if( streaming_ctrl==NULL ) { mp_msg(MSGT_NETWORK,MSGL_FATAL,MSGTR_MemAllocFailed); return NULL; @@ -583,7 +583,7 @@ int streaming_bufferize( streaming_ctrl_t *streaming_ctrl, char *buffer, int size) { //printf("streaming_bufferize\n"); - streaming_ctrl->buffer = (char*)malloc(size); + streaming_ctrl->buffer = malloc(size); if( streaming_ctrl->buffer==NULL ) { mp_msg(MSGT_NETWORK,MSGL_FATAL,MSGTR_MemAllocFailed); return -1;