changeset 156:32b78d95f7fd

Remove erroneous casts to void * in xtract() function calls
author Jamie Bullock <jamie@jamiebullock.com>
date Fri, 15 Mar 2013 10:29:08 +0000
parents 21c5ad2a812e
children 069b2f719dd4
files examples/simpletest/simpletest.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/examples/simpletest/simpletest.c	Thu Mar 14 13:03:12 2013 +0000
+++ b/examples/simpletest/simpletest.c	Fri Mar 15 10:29:08 2013 +0000
@@ -50,7 +50,7 @@
     }
 
     /* get the mean of the input */
-    xtract[XTRACT_MEAN]((void *)&input, BLOCKSIZE, NULL, (void *)&mean);
+    xtract[XTRACT_MEAN](input, BLOCKSIZE, NULL, &mean);
     printf("\nInput mean = %.2f\n\n", mean);
 
     /* get the spectrum */
@@ -60,7 +60,7 @@
     argd[3] = 0.f; /* No Normalisation */
 
     xtract_init_fft(BLOCKSIZE, XTRACT_SPECTRUM);
-    xtract[XTRACT_SPECTRUM]((void *)&input, BLOCKSIZE, &argd[0], (void *)&spectrum[0]);
+    xtract[XTRACT_SPECTRUM](input, BLOCKSIZE, &argd[0], spectrum);
 
     /* print the spectral bins */
     printf("\nSpectral bins:\n");