dect
/
asterisk
Archived
13
0
Fork 0

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

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101196 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2008-01-30 12:48:32 +00:00
parent 1c86efed98
commit bed6564482
1 changed files with 1 additions and 4 deletions

View File

@ -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