changeset 28813:113ae1bae806

Remove several useless casts from af_resample
author reimar
date Fri, 06 Mar 2009 11:47:51 +0000
parents 9dd2e47e5a06
children aa16560de0e7
files libaf/af_resample.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_resample.c	Fri Mar 06 11:46:06 2009 +0000
+++ b/libaf/af_resample.c	Fri Mar 06 11:47:51 2009 +0000
@@ -174,8 +174,8 @@
 {
   switch(cmd){
   case AF_CONTROL_REINIT:{
-    af_resample_t* s   = (af_resample_t*)af->setup; 
-    af_data_t* 	   n   = (af_data_t*)arg; // New configuration
+    af_resample_t* s   = af->setup; 
+    af_data_t* 	   n   = arg; // New configuration
     int            i,d = 0;
     int 	   rv  = AF_OK;
 
@@ -270,7 +270,7 @@
     return rv;
   }
   case AF_CONTROL_COMMAND_LINE:{
-    af_resample_t* s   = (af_resample_t*)af->setup; 
+    af_resample_t* s   = af->setup; 
     int rate=0;
     int type=RSMP_INT;
     int sloppy=1;
@@ -323,7 +323,7 @@
   int 		 len = 0; 	 // Length of output data
   af_data_t*     c   = data;	 // Current working data
   af_data_t*     l   = af->data; // Local data
-  af_resample_t* s   = (af_resample_t*)af->setup;
+  af_resample_t* s   = af->setup;
 
   if(AF_OK != RESIZE_LOCAL_BUFFER(af,data))
     return NULL;