shithub: sox

Download patch

ref: 761307a4fc5635867b379102d5bee61a60b6a423
parent: d8c8e7b910b05f6e13d4ffb5baa634b13d06afaa
author: cbagwell <cbagwell>
date: Tue Dec 28 17:54:17 EST 1999

Quick update to GSM files for using return codes.

--- a/src/gsm.c
+++ b/src/gsm.c
@@ -85,7 +85,7 @@
 int st_gsmstartread(ft) 
 ft_t ft;
 {
-	return st_gsmstart_rw(ft,0);
+	return gsmstart_rw(ft,0);
 }
 
 int st_gsmstartwrite(ft)
@@ -186,7 +186,6 @@
 long *buf, samp;
 {
 	int done = 0;
-	int rc;
 	struct gsmpriv *p = (struct gsmpriv *) ft->priv;
 
 	while (done < samp)
@@ -233,6 +232,6 @@
 		    return rc;
 	}
 
-	return gsmstopread(ft); /* destroy handles and free buffers */
+	return st_gsmstopread(ft); /* destroy handles and free buffers */
 }
 #endif /* HAVE_LIBGSM */
--- a/src/wav.c
+++ b/src/wav.c
@@ -989,7 +989,7 @@
     {
 #ifdef HAVE_LIBGSM
     case ST_ENCODING_GSM:
-	rc = wavgsmdestroy(ft);
+	wavgsmdestroy(ft);
 	break;
 #endif
     case ST_ENCODING_IMA_ADPCM:
@@ -1431,7 +1431,7 @@
 	    break;
 #ifdef HAVE_LIBGSM
 	case WAVE_FORMAT_GSM610:
-	    rc = wavgsmstopwrite(ft);
+	    wavgsmstopwrite(ft);
 	    break;
 #endif
 	default: