aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-05 00:18:46 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-05 00:18:46 +0000
commitcfef0c764902429d37bc958458b96361570075a6 (patch)
tree904785ad920416a9eb97965d136fd12b51168843
parenta15b09e3251a7a532d0ad0c1dd9743c982b8e783 (diff)
doh... fseek() has no useful return value
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7807 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--formats/format_pcm.c3
-rw-r--r--formats/format_pcm_alaw.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index 87363239d..1de3d166f 100644
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -179,7 +179,8 @@ static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence)
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:
diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c
index b26796bda..a738cf07b 100644
--- a/formats/format_pcm_alaw.c
+++ b/formats/format_pcm_alaw.c
@@ -254,7 +254,8 @@ static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence)
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: