shithub: libsamplerate

Download patch

ref: 7b2ced0cf61541c1059988bb996e75d71bdf2321
parent: b9ffd246128c46c863f2116e47d595dbc092a754
author: Erik de Castro Lopo <erikd@miles>
date: Wed May 26 20:54:18 EDT 2004

Fix formatting.

--- a/examples/sndfile-resample.c
+++ b/examples/sndfile-resample.c
@@ -44,7 +44,7 @@
 	int			new_sample_rate = -1, k, converter, max_speed = SF_FALSE ;
 
 	if (argc == 2 && strcmp (argv [1], "--version") == 0)
-	{	char  buffer [64], *cptr ;
+	{	char buffer [64], *cptr ;
 
 		if ((cptr = strrchr (argv [0], '/')) != NULL)
 			argv [0] = cptr + 1 ;
--- a/tests/calc_snr.c
+++ b/tests/calc_snr.c
@@ -204,7 +204,7 @@
 		} ;
 
 	fftw_execute (plan) ;
-	
+
 	fftw_destroy_plan (plan) ;
 
 	/* (k < N/2 rounded up) */
--- a/tests/float_short_test.c
+++ b/tests/float_short_test.c
@@ -29,7 +29,7 @@
 
 #define	ARRAY_LEN(x)	((int) (sizeof (x) / sizeof ((x) [0])))
 
-#define	ABS(a)			(((a) < 0) ? -(a) : (a))
+#define	ABS(a)			(((a) < 0) ? - (a) : (a))
 #define	MAX(a,b)		(((a) >= (b)) ? (a) : (b))
 
 static void float_to_short_test (void) ;
@@ -64,7 +64,7 @@
 	{	-0.95, -0.99, -1.0, -1.01, -1.1, -2.0, -11.1, -111.1, -2222.2, -33333.3
 		} ;
 
-	static short out [MAX(ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;
+	static short out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;
 
 	int k ;