aboutsummaryrefslogtreecommitdiffhomepage
path: root/vidix/drivers
diff options
context:
space:
mode:
authorGravatar reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-13 21:22:56 +0000
committerGravatar reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-13 21:22:56 +0000
commitb7beba300376250bf9fcb6c6a5f233adb4341451 (patch)
tree1f52906bc0e86f06a7df0360dcbff2b8f0c8ad8d /vidix/drivers
parent60708c1acb15cad1b383748d82f526e26e16e984 (diff)
drops casts from void * on malloc/calloc from vidix/
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19073 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/drivers')
-rw-r--r--vidix/drivers/nvidia_vid.c2
-rw-r--r--vidix/drivers/savage_vid.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vidix/drivers/nvidia_vid.c b/vidix/drivers/nvidia_vid.c
index 710336098e..dd887dd07f 100644
--- a/vidix/drivers/nvidia_vid.c
+++ b/vidix/drivers/nvidia_vid.c
@@ -704,7 +704,7 @@ static rivatv_info* info;
int vixInit(void){
int mtrr;
- info = (rivatv_info*)calloc(1,sizeof(rivatv_info));
+ info = calloc(1,sizeof(rivatv_info));
info->control_base = map_phys_mem(pci_info.base0, 0x00C00000 + 0x00008000);
info->chip.arch = nvidia_card_ids[find_chip(pci_info.device)].arch;
printf("[nvidia_vid] arch %x register base %p\n",info->chip.arch,info->control_base);
diff --git a/vidix/drivers/savage_vid.c b/vidix/drivers/savage_vid.c
index 2165230cb1..219a4f595e 100644
--- a/vidix/drivers/savage_vid.c
+++ b/vidix/drivers/savage_vid.c
@@ -873,7 +873,7 @@ vixInit (void)
fprintf(stderr, "vixInit enter \n");
// //getc(stdin);
- info = (savage_info*)calloc(1,sizeof(savage_info));
+ info = calloc(1,sizeof(savage_info));
/* need this if we want direct outb and inb access? */