shithub: sox

Download patch

ref: 5123d9160a92aaf44763f70426ecde27f2b06c15
parent: 0c5bf006be3ee062f0e551d0317dc06b0f2665ea
author: rrt <rrt>
date: Sat Nov 25 20:10:08 EST 2006

exit(2) on error for consistency.

--- a/src/FFT.c
+++ b/src/FFT.c
@@ -78,7 +78,7 @@
 
    if (PowerOfTwo < 2) {
       st_debug("Error: FFT called with size %d", PowerOfTwo);
-      exit(1);
+      exit(2);
    }
 
    for (i = 0;; i++)
@@ -143,7 +143,7 @@
 
    if (!IsPowerOfTwo(NumSamples)) {
       st_debug("%d is not a power of two", NumSamples);
-      exit(1);
+      exit(2);
    }
 
    if (!gFFTBitTable)