Mercurial > mplayer.hg
diff playtree.c @ 18869:682a16136d6c
rm unnecesary void* casts - part 1
author | reynaldo |
---|---|
date | Sat, 01 Jul 2006 03:56:13 +0000 |
parents | 1a14fde7680d |
children | cc65a585fdcc |
line wrap: on
line diff
--- a/playtree.c Fri Jun 30 20:05:28 2006 +0000 +++ b/playtree.c Sat Jul 01 03:56:13 2006 +0000 @@ -830,7 +830,7 @@ assert(old != NULL); #endif - iter = (play_tree_iter_t*)malloc(sizeof(play_tree_iter_t)); + iter = malloc(sizeof(play_tree_iter_t)); if(iter == NULL) { mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Can't allocate %d bytes of memory\n",sizeof(play_tree_iter_t)); return NULL; @@ -838,7 +838,7 @@ ; memcpy(iter,old,sizeof(play_tree_iter_t)); if(old->status_stack) { - iter->status_stack = (int*)malloc(old->stack_size * sizeof(int)); + iter->status_stack = malloc(old->stack_size * sizeof(int)); if(iter->status_stack == NULL) { mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Can't allocate %d bytes of memory\n",old->stack_size * sizeof(int)); free(iter);