diff options
author | kristerw <kristerw> | 2005-07-09 16:05:16 +0000 |
---|---|---|
committer | kristerw <kristerw> | 2005-07-09 16:05:16 +0000 |
commit | 9ddb1a72dfdf09ff8af5890c33e8b5ea54887852 (patch) | |
tree | 3edcfe7e3a0115c6071466f90bb405cffeaa8bdd /audio/sox/patches | |
parent | 015fc928e22b65364dbaf51c6f7ce1db44313c5e (diff) | |
download | pkgsrc-9ddb1a72dfdf09ff8af5890c33e8b5ea54887852.tar.gz |
Fix a C99 variable declaration to make this pkg compile with gcc 2.95.
Diffstat (limited to 'audio/sox/patches')
-rw-r--r-- | audio/sox/patches/patch-ab | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/audio/sox/patches/patch-ab b/audio/sox/patches/patch-ab new file mode 100644 index 00000000000..14a7fd4c62d --- /dev/null +++ b/audio/sox/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.8 2005/07/09 16:05:16 kristerw Exp $ + +--- src/noisered.c.orig Sat Jul 9 18:01:23 2005 ++++ src/noisered.c Sat Jul 9 18:01:52 2005 +@@ -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); |