diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-01-05 00:19:18 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-01-05 00:19:18 +0000 |
commit | 1e9180d0a8fc26b0b91ea9b1b54af6f244c3104d (patch) | |
tree | dcf19e2370d6c254c055e12bdfa9f652745da944 /formats | |
parent | cb2f9640bab2c62429aa791596f964a6ee906cf1 (diff) |
Merged revisions 7807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7807 | kpfleming | 2006-01-04 18:18:46 -0600 (Wed, 04 Jan 2006) | 2 lines
doh... fseek() has no useful return value
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats')
-rw-r--r-- | formats/format_pcm.c | 3 | ||||
-rw-r--r-- | formats/format_pcm_alaw.c | 3 |
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: |