diff --git a/libs/ymodem/uart.cpp b/libs/ymodem/uart.cpp index 84c765c4..c613910e 100644 --- a/libs/ymodem/uart.cpp +++ b/libs/ymodem/uart.cpp @@ -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()) { diff --git a/libs/ysip/engine.cpp b/libs/ysip/engine.cpp index 05157dff..76bdf29b 100644 --- a/libs/ysip/engine.cpp +++ b/libs/ysip/engine.cpp @@ -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()) {