[svn-commits] tilghman: branch 1.4 r162071 - /branches/1.4/channels/chan_phone.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Dec 9 11:07:51 CST 2008
Author: tilghman
Date: Tue Dec 9 11:07:50 2008
New Revision: 162071
URL: http://svn.digium.com/view/asterisk?view=rev&rev=162071
Log:
For some reason, after a distclean, gcc started returning
'value computed is not used'. Fixing (for --enable-dev-mode).
Modified:
branches/1.4/channels/chan_phone.c
Modified: branches/1.4/channels/chan_phone.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_phone.c?view=diff&rev=162071&r1=162070&r2=162071
==============================================================================
--- branches/1.4/channels/chan_phone.c (original)
+++ branches/1.4/channels/chan_phone.c Tue Dec 9 11:07:50 2008
@@ -791,7 +791,7 @@
we have to pad it to 24 bytes still. */
if (frame->datalen == 4) {
if (p->silencesupression) {
- memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
+ memset(tmpbuf, 0, sizeof(tmpbuf));
memcpy(tmpbuf, frame->data, 4);
expected = 24;
res = phone_write_buf(p, tmpbuf, expected, maxfr, 0);
More information about the svn-commits
mailing list