changeset 23629:cb1277fb9d7e

get rid of useless *alloc casts
author reimar
date Sun, 24 Jun 2007 13:27:03 +0000
parents d4f96ae7081c
children a2c1e8b60819
files stream/stream_dvb.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvb.c	Sun Jun 24 13:21:50 2007 +0000
+++ b/stream/stream_dvb.c	Sun Jun 24 13:27:03 2007 +0000
@@ -173,7 +173,7 @@
 			k = colon - line;
 			if(!k)
 				continue;
-			ptr->name = (char*) malloc(k+1);
+			ptr->name = malloc(k+1);
 			if(! ptr->name)
 				continue;
 			strlcpy(ptr->name, line, k+1);
@@ -396,7 +396,7 @@
 			else	ptr->hier = HIERARCHY_NONE;
 		}
 
-		tmp = (dvb_channel_t*)realloc(list->channels, sizeof(dvb_channel_t) * (list->NUM_CHANNELS + 1));
+		tmp = realloc(list->channels, sizeof(dvb_channel_t) * (list->NUM_CHANNELS + 1));
 		if(tmp == NULL)
 			break;
 
@@ -668,7 +668,7 @@
 	if(mode != STREAM_READ)
 		return STREAM_UNSUPORTED;
 
-	stream->priv = (dvb_priv_t*) calloc(1, sizeof(dvb_priv_t));
+	stream->priv = calloc(1, sizeof(dvb_priv_t));
 	if(stream->priv ==  NULL)
 		return STREAM_ERROR;
 
@@ -754,7 +754,7 @@
 	if(dvb_config != NULL)
 		return dvb_config;
 			
-	conf = (dvb_config_t*) malloc(sizeof(dvb_config_t));
+	conf = malloc(sizeof(dvb_config_t));
 	if(conf == NULL)
 		return NULL;
 
@@ -812,7 +812,7 @@
 		}
 		cards = tmp;
 
-		name = (char*) malloc(20);
+		name = malloc(20);
 		if(name==NULL)
 		{
 			fprintf(stderr, "DVB_CONFIG, can't realloc 20 bytes, skipping\n");