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/registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader/registry.c') diff --git a/loader/registry.c b/loader/registry.c index 37a262270e..9964eeb9ff 100644 --- a/loader/registry.c +++ b/loader/registry.c @@ -277,7 +277,7 @@ static struct reg_value* insert_reg_value(int handle, const char* name, int type { if(regs==0) create_registry(); - regs=(struct reg_value*)realloc(regs, sizeof(struct reg_value)*(reg_size+1)); + regs = realloc(regs, sizeof(struct reg_value) * (reg_size +1 )); //regs=(struct reg_value*)my_realloc(regs, sizeof(struct reg_value)*(reg_size+1)); v=regs+reg_size; reg_size++; -- cgit v1.2.3