mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Bug 5984 - Convert file offsets to 64 bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user