aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_wav.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-18 16:34:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-18 16:34:04 +0000
commitff8530647a7e9e2f9bb9ed2dd51d5e07f5371e64 (patch)
tree53a651c97ae67df9a6642ba32aabd101e9ff920c /formats/format_wav.c
parentd5bf9e4881b13d4109f513b02dde0be3169ac20c (diff)
remove unused variable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10447 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_wav.c')
-rw-r--r--formats/format_wav.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/formats/format_wav.c b/formats/format_wav.c
index 83e6dd564..2e74e740b 100644
--- a/formats/format_wav.c
+++ b/formats/format_wav.c
@@ -467,7 +467,6 @@ static struct ast_frame *wav_read(struct ast_filestream *s, int *whennext)
static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
{
- int res = 0;
int x;
short tmp[8000], *tmpi;
float tmpf;
@@ -508,7 +507,7 @@ static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
}
if ((fwrite(tmp, 1, f->datalen, fs->f) != f->datalen) ) {
- ast_log(LOG_WARNING, "Bad write (%d): %s\n", res, strerror(errno));
+ ast_log(LOG_WARNING, "Bad write (%d): %s\n", errno, strerror(errno));
return -1;
}
} else {