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:
parent
736fb2bb2f
commit
4b2b5be5a1
|
@ -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()) {
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue