[asterisk-commits] mmichelson: branch 1.4 r202966 - /branches/1.4/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 24 13:28:50 CDT 2009
Author: mmichelson
Date: Wed Jun 24 13:28:47 2009
New Revision: 202966
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202966
Log:
Use the handy UNLINK macro instead of hand-coding the same thing in-line.
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=202966&r1=202965&r2=202966
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Jun 24 13:28:47 2009
@@ -15530,11 +15530,7 @@
for (pkt = p->packets, prev_pkt = NULL; pkt; prev_pkt = pkt, pkt = pkt->next) {
if (pkt->seqno == p->lastinvite && pkt->response_code == 487) {
AST_SCHED_DEL(sched, pkt->retransid);
- if (prev_pkt) {
- prev_pkt->next = pkt->next;
- } else {
- p->packets = pkt->next;
- }
+ UNLINK(pkt, p->packets, prev_pkt);
ast_free(pkt);
break;
}
More information about the asterisk-commits
mailing list