From a275cd3fe2331a24de438a351bd24a1ff1f4fc69 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Fri, 15 Mar 2013 10:29:08 +0000 Subject: Remove erroneous casts to void * in xtract() function calls --- examples/simpletest/simpletest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simpletest/simpletest.c b/examples/simpletest/simpletest.c index 6b5ee30..d895944 100644 --- a/examples/simpletest/simpletest.c +++ b/examples/simpletest/simpletest.c @@ -50,7 +50,7 @@ int main(void) } /* 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 @@ int main(void) 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"); -- cgit v1.2.3