projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df05e39
)
remove unused variable
author
Russell Bryant
<russell@russellbryant.com>
Sat, 18 Feb 2006 16:34:04 +0000
(16:34 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Sat, 18 Feb 2006 16:34:04 +0000
(16:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10447
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
formats/format_wav.c
patch
|
blob
|
history
diff --git
a/formats/format_wav.c
b/formats/format_wav.c
index
83e6dd5
..
2e74e74
100644
(file)
--- 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 {