diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-07-30 20:33:44 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-07-30 20:33:44 +0000 |
commit | 3b493393872085667ed0edc968e153f64855d5e0 (patch) | |
tree | 63b2c395286554ad778b8238ed90714cb2d86234 /channels/chan_iax2.c | |
parent | a27203a5bcf60d10436e2fa5772a05895b44438f (diff) |
Explicitly set a variable to 1 instead of using the increment operator.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index b729cab51..1709d87ce 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -2006,7 +2006,7 @@ static void __attempt_transmit(void *data) /* 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 @@ static void __attempt_transmit(void *data) } } - freeme++; + freeme = 1; } else { /* Update it if it needs it */ update_packet(f); @@ -2065,7 +2065,7 @@ static void __attempt_transmit(void *data) } else { /* Make sure it gets freed */ f->retries = -1; - freeme++; + freeme = 1; } if (callno) ast_mutex_unlock(&iaxsl[callno]); |