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 --- m_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm_option.c') diff --git a/m_option.c b/m_option.c index 6a5565eca0..8224ba7f35 100644 --- a/m_option.c +++ b/m_option.c @@ -1011,7 +1011,7 @@ static int parse_subconf(const m_option_t* opt,const char *name, const char *par subparam[0] == 0 ? NULL : subparam,NULL,src); if(r < 0) return r; if(dst) { - lst = (char**)realloc(lst,2 * (nr+2) * sizeof(char*)); + lst = realloc(lst,2 * (nr+2) * sizeof(char*)); lst[2*nr] = strdup(subopt); lst[2*nr+1] = subparam[0] == 0 ? NULL : strdup(subparam); memset(&lst[2*(nr+1)],0,2*sizeof(char*)); -- cgit v1.2.3