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 --- stream/tvi_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream/tvi_def.h') diff --git a/stream/tvi_def.h b/stream/tvi_def.h index 261a8ee4cd..43de8c6423 100644 --- a/stream/tvi_def.h +++ b/stream/tvi_def.h @@ -47,11 +47,11 @@ static const tvi_functions_t functions = static tvi_handle_t *new_handle(void) { - tvi_handle_t *h = (tvi_handle_t *)malloc(sizeof(tvi_handle_t)); + tvi_handle_t *h = malloc(sizeof(tvi_handle_t)); if (!h) return NULL; - h->priv = (priv_t *)malloc(sizeof(priv_t)); + h->priv = malloc(sizeof(priv_t)); if (!h->priv) { free(h); -- cgit v1.2.3