From 18ab6f429c631ee1616e43f4e4d91fe77b0fd2cb Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 5 Jan 2006 00:18:46 +0000 Subject: [PATCH] doh... fseek() has no useful return value git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7807 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_pcm.c | 3 ++- 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 87363239d6..1de3d166f7 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 b26796bdab..a738cf07b0 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: