Mercurial > mplayer.hg
diff loader/dmo/dmo.c @ 30702:9fc9d1e788aa
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.
author | diego |
---|---|
date | Fri, 26 Feb 2010 15:01:37 +0000 |
parents | 008338d7679f |
children | 277b0288b0f9 |
line wrap: on
line diff
--- a/loader/dmo/dmo.c Fri Feb 26 12:49:49 2010 +0000 +++ b/loader/dmo/dmo.c Fri Feb 26 15:01:37 2010 +0000 @@ -36,7 +36,7 @@ { HRESULT hr = 0; const char* em = NULL; - DMO_Filter* This = (DMO_Filter*) malloc(sizeof(DMO_Filter)); + DMO_Filter* This = malloc(sizeof(DMO_Filter)); if (!This) return NULL;