[svn-commits] seanbright: trunk r160171 - /trunk/channels/chan_phone.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 1 17:18:49 CST 2008


Author: seanbright
Date: Mon Dec  1 17:18:48 2008
New Revision: 160171

URL: http://svn.digium.com/view/asterisk?view=rev&rev=160171
Log:
Silence a build warning. (chan_phone.c:810: warning: value computed is not used)

Modified:
    trunk/channels/chan_phone.c

Modified: trunk/channels/chan_phone.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_phone.c?view=diff&rev=160171&r1=160170&r2=160171
==============================================================================
--- trunk/channels/chan_phone.c (original)
+++ trunk/channels/chan_phone.c Mon Dec  1 17:18:48 2008
@@ -807,7 +807,7 @@
 		   we have to pad it to 24 bytes still.  */
 		if (frame->datalen == 4) {
 			if (p->silencesupression) {
-				memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
+				(void) memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
 				memcpy(tmpbuf, frame->data.ptr, 4);
 				expected = 24;
 				res = phone_write_buf(p, tmpbuf, expected, maxfr, 0);




More information about the svn-commits mailing list