From b63759b175cf9ddd9735ca0d2f803fe62f69c3c3 Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 26 Feb 2010 15:01:37 +0000 Subject: 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 --- loader/drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader/drv.c') diff --git a/loader/drv.c b/loader/drv.c index 43d9485646..9479e6944d 100644 --- a/loader/drv.c +++ b/loader/drv.c @@ -75,7 +75,7 @@ void SetCodecPath(const char* path) needs_free=0; return; } - def_path = (char*) malloc(strlen(path)+1); + def_path = malloc(strlen(path)+1); strcpy(def_path, path); needs_free=1; } @@ -153,7 +153,7 @@ HDRVR DrvOpen(LPARAM lParam2) #endif printf("Loading codec DLL: '%s'\n",filename); - hDriver = (NPDRVR) malloc(sizeof(DRVR)); + hDriver = malloc(sizeof(DRVR)); if (!hDriver) return (HDRVR) 0; memset((void*)hDriver, 0, sizeof(DRVR)); -- cgit v1.2.3