[asterisk-commits] kpfleming: trunk r101196 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 30 06:48:32 CST 2008
Author: kpfleming
Date: Wed Jan 30 06:48:32 2008
New Revision: 101196
URL: http://svn.digium.com/view/asterisk?view=rev&rev=101196
Log:
simplify this code and eliminate the return value cast that is no longer necessary
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=101196&r1=101195&r2=101196
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jan 30 06:48:32 2008
@@ -3261,10 +3261,7 @@
/*! \brief Deliver SIP call ID for the call */
static const char *sip_get_callid(struct ast_channel *chan)
{
- struct sip_pvt *p = chan->tech_pvt;
- if (!p)
- return "";
- return ((char *)p->callid);
+ return chan->tech_pvt ? ((struct sip_pvt *) chan->tech_pvt)->callid : "";
}
/*! \brief Send SIP MESSAGE text within a call
More information about the asterisk-commits
mailing list