diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-20 23:35:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-20 23:35:12 +0000 |
commit | e8504c1dcecfd65acce1e93c3f3959e0b47fd11d (patch) | |
tree | 867b95de4af325e2b9e52f635b10137ffde176ba /formats/format_g723.c | |
parent | e100a316d4ea686cc45a1d549a2e396579712e43 (diff) |
Bug 5984 - Convert file offsets to 64 bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10579 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_g723.c')
-rw-r--r-- | formats/format_g723.c | 6 |
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; } |