mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 05:38:11 +00:00
fix various other problems found by gcc 4.3
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@107464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2407,12 +2407,12 @@ static int handle_bchan(msg_t *msg)
|
||||
|
||||
case PH_CONTROL|INDICATION:
|
||||
{
|
||||
unsigned int cont = *((unsigned int *)&frm->data.p);
|
||||
unsigned int *cont = (unsigned int *) &frm->data.p;
|
||||
|
||||
cb_log(4, stack->port, "PH_CONTROL: channel:%d oad%d:%s dad%d:%s \n", bc->channel, bc->onumplan,bc->oad, bc->dnumplan,bc->dad);
|
||||
|
||||
if ((cont&~DTMF_TONE_MASK) == DTMF_TONE_VAL) {
|
||||
int dtmf = cont & DTMF_TONE_MASK;
|
||||
if ((*cont & ~DTMF_TONE_MASK) == DTMF_TONE_VAL) {
|
||||
int dtmf = *cont & DTMF_TONE_MASK;
|
||||
cb_log(4, stack->port, " --> DTMF TONE: %c\n",dtmf);
|
||||
bc->dtmf=dtmf;
|
||||
cb_event(EVENT_DTMF_TONE, bc, glob_mgr->user_data);
|
||||
@@ -2420,12 +2420,12 @@ static int handle_bchan(msg_t *msg)
|
||||
free_msg(msg);
|
||||
return 1;
|
||||
}
|
||||
if (cont == BF_REJECT) {
|
||||
if (*cont == BF_REJECT) {
|
||||
cb_log(4, stack->port, " --> BF REJECT\n");
|
||||
free_msg(msg);
|
||||
return 1;
|
||||
}
|
||||
if (cont == BF_ACCEPT) {
|
||||
if (*cont == BF_ACCEPT) {
|
||||
cb_log(4, stack->port, " --> BF ACCEPT\n");
|
||||
free_msg(msg);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user