Get chan_ooh323 to compile with gcc 4.2.
For some reason, the code compiles just fine with later versions of GCC, but this one requires some weird double casting in order to get rid of all warnings. Whatever. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@228658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
97de30df8f
commit
fbe477ea50
|
@ -3201,7 +3201,7 @@ int ooSendH245UserInputIndication_alphanumeric
|
||||||
ooFreeH245Message(call, ph245msg);
|
ooFreeH245Message(call, ph245msg);
|
||||||
return OO_FAILED;
|
return OO_FAILED;
|
||||||
}
|
}
|
||||||
strcpy((char*)indication->u.userInput->u.alphanumeric, data);
|
strcpy(*(char**)indication->u.userInput->u.alphanumeric, data);
|
||||||
OOTRACEDBGA3 ("Built UserInputIndication_alphanumeric (%s, %s)\n",
|
OOTRACEDBGA3 ("Built UserInputIndication_alphanumeric (%s, %s)\n",
|
||||||
call->callType, call->callToken);
|
call->callType, call->callToken);
|
||||||
|
|
||||||
|
@ -3264,7 +3264,7 @@ int ooSendH245UserInputIndication_signal
|
||||||
ooFreeH245Message(call, ph245msg);
|
ooFreeH245Message(call, ph245msg);
|
||||||
return OO_FAILED;
|
return OO_FAILED;
|
||||||
}
|
}
|
||||||
strcpy((char*)indication->u.userInput->u.signal->signalType, data);
|
strcpy(*(char**)indication->u.userInput->u.signal->signalType, data);
|
||||||
OOTRACEDBGA3 ("Built UserInputIndication_signal (%s, %s)\n",
|
OOTRACEDBGA3 ("Built UserInputIndication_signal (%s, %s)\n",
|
||||||
call->callType, call->callToken);
|
call->callType, call->callToken);
|
||||||
|
|
||||||
|
|
|
@ -2167,7 +2167,7 @@ int ooPopulatePrefixList(OOCTXT *pctxt, OOAliases *pAliases,
|
||||||
memFreePtr(pctxt, pPrefixEntry);
|
memFreePtr(pctxt, pPrefixEntry);
|
||||||
return OO_FAILED;
|
return OO_FAILED;
|
||||||
}
|
}
|
||||||
strcpy((char*)pPrefixEntry->prefix.u.dialedDigits, pAlias->value);
|
strcpy(*(char**)pPrefixEntry->prefix.u.dialedDigits, pAlias->value);
|
||||||
bValid = TRUE;
|
bValid = TRUE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -2220,7 +2220,7 @@ int ooPopulateAliasList(OOCTXT *pctxt, OOAliases *pAliases,
|
||||||
memFreePtr(pctxt, pAliasEntry);
|
memFreePtr(pctxt, pAliasEntry);
|
||||||
return OO_FAILED;
|
return OO_FAILED;
|
||||||
}
|
}
|
||||||
strcpy((char*)pAliasEntry->u.dialedDigits, pAlias->value);
|
strcpy(*(char**)pAliasEntry->u.dialedDigits, pAlias->value);
|
||||||
bValid = TRUE;
|
bValid = TRUE;
|
||||||
break;
|
break;
|
||||||
case T_H225AliasAddress_h323_ID:
|
case T_H225AliasAddress_h323_ID:
|
||||||
|
@ -2249,7 +2249,7 @@ int ooPopulateAliasList(OOCTXT *pctxt, OOAliases *pAliases,
|
||||||
memFreePtr(pctxt, pAliasEntry);
|
memFreePtr(pctxt, pAliasEntry);
|
||||||
return OO_FAILED;
|
return OO_FAILED;
|
||||||
}
|
}
|
||||||
strcpy((char*)pAliasEntry->u.url_ID, pAlias->value);
|
strcpy(*(char**)pAliasEntry->u.url_ID, pAlias->value);
|
||||||
bValid = TRUE;
|
bValid = TRUE;
|
||||||
break;
|
break;
|
||||||
case T_H225AliasAddress_email_ID:
|
case T_H225AliasAddress_email_ID:
|
||||||
|
@ -2262,7 +2262,7 @@ int ooPopulateAliasList(OOCTXT *pctxt, OOAliases *pAliases,
|
||||||
"alias entry \n");
|
"alias entry \n");
|
||||||
return OO_FAILED;
|
return OO_FAILED;
|
||||||
}
|
}
|
||||||
strcpy((char*)pAliasEntry->u.email_ID, pAlias->value);
|
strcpy(*(char**)pAliasEntry->u.email_ID, pAlias->value);
|
||||||
bValid = TRUE;
|
bValid = TRUE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue