[asterisk-commits] rizzo: branch rizzo/astobj2 r47450 -
/team/rizzo/astobj2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Nov 10 11:28:06 MST 2006
Author: rizzo
Date: Fri Nov 10 12:28:05 2006
New Revision: 47450
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47450
Log:
use UNLINK to remove a packet from its queue.
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47450&r1=47449&r2=47450
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Fri Nov 10 12:28:05 2006
@@ -2021,10 +2021,7 @@
/* Remove the packet */
for (prev = NULL, cur = pvt->packets; cur; prev = cur, cur = cur->next) {
if (cur == pkt) {
- if (prev)
- prev->next = cur->next;
- else
- pvt->packets = cur->next;
+ UNLINK(cur, pvt->packets, prev);
pkt->pvt = pvt_unref(pvt); /* release the reference pvt */
free(cur);
break;
More information about the asterisk-commits
mailing list