[asterisk-commits] rmudgett: trunk r354498 - in /trunk/channels: chan_dahdi.c chan_misdn.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 8 21:09:41 CST 2012


Author: rmudgett
Date: Wed Feb  8 21:09:39 2012
New Revision: 354498

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=354498
Log:
Fix some compile problems from the 'cppcheck' patch.

Modified:
    trunk/channels/chan_dahdi.c
    trunk/channels/chan_misdn.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=354498&r1=354497&r2=354498
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Wed Feb  8 21:09:39 2012
@@ -18898,11 +18898,17 @@
 	struct pollfd fds[1];
 	int size,res,fd,len,x;
 	int bytes=0;
-	/* Initial carrier (imaginary) */
+	int idx;
+
+	/*
+	 * Initial carrier (imaginary)
+	 *
+	 * Note: The following float variables are used by the
+	 * PUT_CLID_MARKMS and PUT_CLID() macros.
+	 */
 	float cr = 1.0;
 	float ci = 0.0;
 	float scont = 0.0;
-	int idx;
 
 	if (!text[0]) {
 		return(0); /* if nothing to send, don't */

Modified: trunk/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_misdn.c?view=diff&rev=354498&r1=354497&r2=354498
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Wed Feb  8 21:09:39 2012
@@ -7504,7 +7504,7 @@
 
 	} else {
 		/* transmit without jitterbuffer */
-		i = misdn_lib_tx2misdn_frm(ch->bc, frame->data.ptr, frame->samples);
+		misdn_lib_tx2misdn_frm(ch->bc, frame->data.ptr, frame->samples);
 	}
 
 	return 0;




More information about the asterisk-commits mailing list