Skip to content
Snippets Groups Projects
Commit 9e7a9c32 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

simplify this code and eliminate the return value cast that is no longer necessary

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 13c62afa
No related branches found
No related tags found
No related merge requests found
......@@ -3261,10 +3261,7 @@ static int sip_sendhtml(struct ast_channel *chan, int subclass, const char *data
/*! \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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment