summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvb.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-24 13:27:03 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-24 13:27:03 +0000
commit5fa17cb7f2a2c8e0f734e13dc0b18847cc7e4227 (patch)
treeea15f572b10b4dd084853a2d11a3c9c058c58572 /stream/stream_dvb.c
parent33d26c72cf5655857d7c4d23981b789e01f511d5 (diff)
downloadmpv-5fa17cb7f2a2c8e0f734e13dc0b18847cc7e4227.tar.bz2
mpv-5fa17cb7f2a2c8e0f734e13dc0b18847cc7e4227.tar.xz
get rid of useless *alloc casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23649 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r--stream/stream_dvb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index 05236b2fce..7be16e11ef 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -173,7 +173,7 @@ static dvb_channels_list *dvb_get_channels(char *filename, int type)
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 @@ static dvb_channels_list *dvb_get_channels(char *filename, int type)
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 @@ static int dvb_open(stream_t *stream, int mode, void *opts, int *file_format)
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 @@ dvb_config_t *dvb_get_config(void)
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 @@ dvb_config_t *dvb_get_config(void)
}
cards = tmp;
- name = (char*) malloc(20);
+ name = malloc(20);
if(name==NULL)
{
fprintf(stderr, "DVB_CONFIG, can't realloc 20 bytes, skipping\n");