[MPlayer-cvslog] r19073 - in trunk/vidix/drivers: nvidia_vid.c savage_vid.c

reynaldo subversion at mplayerhq.hu
Thu Jul 13 23:22:57 CEST 2006


Author: reynaldo
Date: Thu Jul 13 23:22:56 2006
New Revision: 19073

Modified:
   trunk/vidix/drivers/nvidia_vid.c
   trunk/vidix/drivers/savage_vid.c

Log:
drops casts from void * on malloc/calloc from vidix/

Modified: trunk/vidix/drivers/nvidia_vid.c
==============================================================================
--- trunk/vidix/drivers/nvidia_vid.c	(original)
+++ trunk/vidix/drivers/nvidia_vid.c	Thu Jul 13 23:22:56 2006
@@ -704,7 +704,7 @@
       
 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);

Modified: trunk/vidix/drivers/savage_vid.c
==============================================================================
--- trunk/vidix/drivers/savage_vid.c	(original)
+++ trunk/vidix/drivers/savage_vid.c	Thu Jul 13 23:22:56 2006
@@ -873,7 +873,7 @@
 	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? */



More information about the MPlayer-cvslog mailing list