summaryrefslogtreecommitdiffstats
path: root/libmpdemux/network.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-13 16:41:13 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-13 16:41:13 +0000
commit32492483c0783a7b82a45a400527977124575335 (patch)
treedd22c483403cde4552f27adc715366c0e4b941b5 /libmpdemux/network.c
parent241bfa8a0ca7c52c66fb48f6b9d97a0c7d8db4c2 (diff)
downloadmpv-32492483c0783a7b82a45a400527977124575335.tar.bz2
mpv-32492483c0783a7b82a45a400527977124575335.tar.xz
drops casts from void * on malloc/calloc from libmpdemux code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19067 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/network.c')
-rw-r--r--libmpdemux/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 4040e2aa37..1dc6a6e9d5 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -96,7 +96,7 @@ mime_struct_t mime_type_table[] = {
streaming_ctrl_t *
streaming_ctrl_new(void) {
streaming_ctrl_t *streaming_ctrl;
- streaming_ctrl = (streaming_ctrl_t*)malloc(sizeof(streaming_ctrl_t));
+ streaming_ctrl = malloc(sizeof(streaming_ctrl_t));
if( streaming_ctrl==NULL ) {
mp_msg(MSGT_NETWORK,MSGL_FATAL,MSGTR_MemAllocFailed);
return NULL;
@@ -583,7 +583,7 @@ http_seek( stream_t *stream, off_t pos ) {
int
streaming_bufferize( streaming_ctrl_t *streaming_ctrl, char *buffer, int size) {
//printf("streaming_bufferize\n");
- streaming_ctrl->buffer = (char*)malloc(size);
+ streaming_ctrl->buffer = malloc(size);
if( streaming_ctrl->buffer==NULL ) {
mp_msg(MSGT_NETWORK,MSGL_FATAL,MSGTR_MemAllocFailed);
return -1;