summaryrefslogtreecommitdiff
path: root/formats/format_g723.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-02-20 23:35:12 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-02-20 23:35:12 +0000
commitaa20c556f75ec1556e58259ff2168a26bc574b31 (patch)
tree867b95de4af325e2b9e52f635b10137ffde176ba /formats/format_g723.c
parent67e55d4d67cde1495dfa2c3f8cad7ba61ed6bf50 (diff)
Bug 5984 - Convert file offsets to 64 bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_g723.c')
-rw-r--r--formats/format_g723.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/format_g723.c b/formats/format_g723.c
index 8263b379a..5eff15df3 100644
--- a/formats/format_g723.c
+++ b/formats/format_g723.c
@@ -214,7 +214,7 @@ static int g723_write(struct ast_filestream *fs, struct ast_frame *f)
return 0;
}
-static int g723_seek(struct ast_filestream *fs, long sample_offset, int whence)
+static int g723_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
{
return -1;
}
@@ -222,12 +222,12 @@ static int g723_seek(struct ast_filestream *fs, long sample_offset, int whence)
static int g723_trunc(struct ast_filestream *fs)
{
/* Truncate file to current length */
- if (ftruncate(fileno(fs->f), ftell(fs->f)) < 0)
+ if (ftruncate(fileno(fs->f), ftello(fs->f)) < 0)
return -1;
return 0;
}
-static long g723_tell(struct ast_filestream *fs)
+static off_t g723_tell(struct ast_filestream *fs)
{
return -1;
}