Silenced some compiler warnings.

git-svn-id: http://yate.null.ro/svn/yate/trunk@6203 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2017-04-11 08:08:07 +00:00
parent 736fb2bb2f
commit 4b2b5be5a1
2 changed files with 3 additions and 1 deletions

View File

@ -607,7 +607,7 @@ bool ETSIModem::createMsg(NamedList& params, DataBlock& data)
// Build message
unsigned char len = 0;
unsigned char hdr[2] = {type};
unsigned char hdr[2] = {(unsigned char)type};
data.assign(&hdr,sizeof(hdr));
for (ObjList* o = msg.skipNull(); o; o = o->skipNext()) {

View File

@ -314,6 +314,7 @@ void SIPEngine::processEvent(SIPEvent *event)
{
if (!event)
return;
#ifdef DEBUG
const char* type = "unknown";
if (event->isOutgoing())
type = "outgoing";
@ -321,6 +322,7 @@ void SIPEngine::processEvent(SIPEvent *event)
type = "incoming";
DDebug(this,DebugAll,"Processing %s event %p message %p [%p]",
type,event,event->getMessage(),this);
#endif
if (event->getMessage()) {
if (event->isOutgoing()) {
switch (event->getState()) {