[asterisk-commits] trunk r10447 - /trunk/formats/format_wav.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Feb 18 09:34:06 MST 2006


Author: russell
Date: Sat Feb 18 10:34:04 2006
New Revision: 10447

URL: http://svn.digium.com/view/asterisk?rev=10447&view=rev
Log:
remove unused variable

Modified:
    trunk/formats/format_wav.c

Modified: trunk/formats/format_wav.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_wav.c?rev=10447&r1=10446&r2=10447&view=diff
==============================================================================
--- trunk/formats/format_wav.c (original)
+++ trunk/formats/format_wav.c Sat Feb 18 10:34:04 2006
@@ -467,7 +467,6 @@
 
 static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
 {
-	int res = 0;
 	int x;
 	short tmp[8000], *tmpi;
 	float tmpf;
@@ -508,7 +507,7 @@
 
 		}
 		if ((fwrite(tmp, 1, f->datalen, fs->f) != f->datalen) ) {
-			ast_log(LOG_WARNING, "Bad write (%d): %s\n", res, strerror(errno));
+			ast_log(LOG_WARNING, "Bad write (%d): %s\n", errno, strerror(errno));
 			return -1;
 		}
 	} else {



More information about the asterisk-commits mailing list