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/ldt_keeper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader/ldt_keeper.c') diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index 0fcc98d53c..92a7df88a5 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -182,7 +182,7 @@ ldt_fs_t* Setup_LDT_Keeper(void) { struct modify_ldt_ldt_s array; int ret; - ldt_fs_t* ldt_fs = (ldt_fs_t*) malloc(sizeof(ldt_fs_t)); + ldt_fs_t* ldt_fs = malloc(sizeof(ldt_fs_t)); if (!ldt_fs) return NULL; -- cgit v1.2.3