summaryrefslogtreecommitdiff
path: root/formats/format_pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'formats/format_pcm.c')
-rw-r--r--formats/format_pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index f65a6202f..b763b5592 100644
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -168,7 +168,7 @@ static int pcm_trunc(struct ast_filestream *fs)
ast_log(AST_LOG_WARNING, "Unable to determine file descriptor for pcm filestream %p: %s\n", fs, strerror(errno));
return -1;
}
- if ((cur = ftello(fs->f) < 0)) {
+ if ((cur = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine current position in pcm filestream %p: %s\n", fs, strerror(errno));
return -1;
}
@@ -445,7 +445,7 @@ static int au_trunc(struct ast_filestream *fs)
ast_log(AST_LOG_WARNING, "Unable to determine file descriptor for au filestream %p: %s\n", fs, strerror(errno));
return -1;
}
- if ((cur = ftello(fs->f) < 0)) {
+ if ((cur = ftello(fs->f)) < 0) {
ast_log(AST_LOG_WARNING, "Unable to determine current position in au filestream %p: %s\n", fs, strerror(errno));
return -1;
}