[asterisk-commits] russell: trunk r77799 - /trunk/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 30 15:33:44 CDT 2007
Author: russell
Date: Mon Jul 30 15:33:44 2007
New Revision: 77799
URL: http://svn.digium.com/view/asterisk?view=rev&rev=77799
Log:
Explicitly set a variable to 1 instead of using the increment operator.
Modified:
trunk/channels/chan_iax2.c
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=77799&r1=77798&r2=77799
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Mon Jul 30 15:33:44 2007
@@ -2006,7 +2006,7 @@
/* Attempt to transmit the frame to the remote peer...
Called without iaxsl held. */
struct iax_frame *f = data;
- int freeme=0;
+ int freeme = 0;
int callno = f->callno;
/* Make sure this call is still active */
if (callno)
@@ -2046,7 +2046,7 @@
}
}
- freeme++;
+ freeme = 1;
} else {
/* Update it if it needs it */
update_packet(f);
@@ -2065,7 +2065,7 @@
} else {
/* Make sure it gets freed */
f->retries = -1;
- freeme++;
+ freeme = 1;
}
if (callno)
ast_mutex_unlock(&iaxsl[callno]);
More information about the asterisk-commits
mailing list