[asterisk-commits] branch 1.2 - r7807 in /branches/1.2/formats: format_pcm.c format_pcm_alaw.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 4 18:18:47 CST 2006


Author: kpfleming
Date: Wed Jan  4 18:18:46 2006
New Revision: 7807

URL: http://svn.digium.com/view/asterisk?rev=7807&view=rev
Log:
doh... fseek() has no useful return value

Modified:
    branches/1.2/formats/format_pcm.c
    branches/1.2/formats/format_pcm_alaw.c

Modified: branches/1.2/formats/format_pcm.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/formats/format_pcm.c?rev=7807&r1=7806&r2=7807&view=diff
==============================================================================
--- branches/1.2/formats/format_pcm.c (original)
+++ branches/1.2/formats/format_pcm.c Wed Jan  4 18:18:46 2006
@@ -179,7 +179,8 @@
 	long cur, max, offset;
 
 	cur = ftell(fs->f);
-	max = fseek(fs->f, 0, SEEK_END);
+	fseek(fs->f, 0, SEEK_END);
+	max = ftell(fs->f);
 
 	switch (whence) {
 	case SEEK_SET:

Modified: branches/1.2/formats/format_pcm_alaw.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/formats/format_pcm_alaw.c?rev=7807&r1=7806&r2=7807&view=diff
==============================================================================
--- branches/1.2/formats/format_pcm_alaw.c (original)
+++ branches/1.2/formats/format_pcm_alaw.c Wed Jan  4 18:18:46 2006
@@ -254,7 +254,8 @@
 	long cur, max, offset;
 
 	cur = ftell(fs->f);
-	max = fseek(fs->f, 0, SEEK_END);
+	fseek(fs->f, 0, SEEK_END);
+	max = ftell(fs->f);
 
 	switch (whence) {
 	case SEEK_SET:



More information about the asterisk-commits mailing list