1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Fix build on 4.x

This commit is contained in:
Kirill Ponomarev 2004-12-24 08:10:52 +00:00
parent b08cc115e3
commit 93e1219378
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125040

View File

@ -0,0 +1,22 @@
$FreeBSD$
--- src/noisered.c.orig
+++ src/noisered.c
@@ -126,6 +126,7 @@
* due to overlapping windows. */
static void reduce_noise(chandata_t* chan, float* window, float level)
{
+ int i;
float *inr = (float*)calloc(WINDOWSIZE, sizeof(float));
float *ini = (float*)calloc(WINDOWSIZE, sizeof(float));
float *outr = (float*)calloc(WINDOWSIZE, sizeof(float));
@@ -135,8 +136,6 @@
static int callnum = 0;
callnum ++;
-
- int i;
for (i = 0; i < FREQCOUNT; i ++) {
assert(smoothing[i] >= 0 && smoothing[i] <= 1);