diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-23 18:00:50 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-23 18:00:50 +0000 |
commit | 98dbc9553391bdcae50adaaf667e199ca039c3e3 (patch) | |
tree | 604525f61a6b240013652a7c307ed66a3d384bb9 /formats/format_pcm.c | |
parent | 302c9430013d40e82a3e9925e96921ba40650db1 (diff) |
silence some more compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_pcm.c')
-rw-r--r-- | formats/format_pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/format_pcm.c b/formats/format_pcm.c index 240be65d1..d3f73e3b3 100644 --- a/formats/format_pcm.c +++ b/formats/format_pcm.c @@ -199,7 +199,7 @@ static int pcm_seek(struct ast_filestream *fs, off_t sample_offset, int whence) offset = sample_offset; } if (offset < 0) { - ast_log(LOG_WARNING, "negative offset %ld, resetting to 0\n", offset); + ast_log(LOG_WARNING, "negative offset %ld, resetting to 0\n", (long) offset); offset = 0; } if (whence == SEEK_FORCECUR && offset > max) { /* extend the file */ @@ -215,7 +215,7 @@ static int pcm_seek(struct ast_filestream *fs, off_t sample_offset, int whence) ret = 0; /* successful */ } else { if (offset > max) { - ast_log(LOG_WARNING, "offset too large %ld, truncating to %ld\n", offset, max); + ast_log(LOG_WARNING, "offset too large %ld, truncating to %ld\n", (long) offset, (long) max); offset = max; } ret = fseeko(fs->f, offset, SEEK_SET); |