summaryrefslogtreecommitdiffstats
path: root/loader/dshow/allocator.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-26 15:01:37 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-26 15:01:37 +0000
commitb63759b175cf9ddd9735ca0d2f803fe62f69c3c3 (patch)
treea583febda46545afc4ed20ccbdbed0ae3165a5c4 /loader/dshow/allocator.c
parentfad137d7fe3bfef6a258518a1e86a4d811d3b4b5 (diff)
downloadmpv-b63759b175cf9ddd9735ca0d2f803fe62f69c3c3.tar.bz2
mpv-b63759b175cf9ddd9735ca0d2f803fe62f69c3c3.tar.xz
Do not cast the results of malloc/calloc/realloc.
These functions return void*, which is compatible with any pointer, so there is no need for casts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/allocator.c')
-rw-r--r--loader/dshow/allocator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/dshow/allocator.c b/loader/dshow/allocator.c
index 8ead279a37..b75f1bebfb 100644
--- a/loader/dshow/allocator.c
+++ b/loader/dshow/allocator.c
@@ -58,7 +58,7 @@ static inline int avm_list_print(avm_list_t* head)
static inline avm_list_t* avm_list_add_head(avm_list_t* head, void* member)
{
- avm_list_t* n = (avm_list_t*) malloc(sizeof(avm_list_t));
+ avm_list_t* n = malloc(sizeof(avm_list_t));
n->member = member;
if (!head)
@@ -310,7 +310,7 @@ IMPLEMENT_IUNKNOWN(MemAllocator)
MemAllocator* MemAllocatorCreate()
{
- MemAllocator* This = (MemAllocator*) malloc(sizeof(MemAllocator));
+ MemAllocator* This = malloc(sizeof(MemAllocator));
if (!This)
return NULL;
@@ -323,7 +323,7 @@ MemAllocator* MemAllocatorCreate()
This->props.cbAlign = 1;
This->props.cbPrefix = 0;
- This->vt = (IMemAllocator_vt*) malloc(sizeof(IMemAllocator_vt));
+ This->vt = malloc(sizeof(IMemAllocator_vt));
if (!This->vt)
{