- removed some warnings in reporting.c

pull/331/merge
Michael Zillgith 4 years ago
parent 8eeb6f06b3
commit 8918a442e0

@ -71,11 +71,12 @@ ReportBuffer_create(int bufferSize)
GLOBAL_FREEMEM(self); GLOBAL_FREEMEM(self);
self = NULL; self = NULL;
} }
else {
#if (CONFIG_MMS_THREADLESS_STACK != 1) #if (CONFIG_MMS_THREADLESS_STACK != 1)
self->lock = Semaphore_create(1); self->lock = Semaphore_create(1);
#endif #endif
} }
}
return self; return self;
} }
@ -1561,8 +1562,6 @@ increaseConfRev(ReportControl* self)
MmsValue_setUint32(self->confRev, confRev); MmsValue_setUint32(self->confRev, confRev);
} }
static void static void
checkReservationTimeout(MmsMapping* self, ReportControl* rc) checkReservationTimeout(MmsMapping* self, ReportControl* rc)
{ {
@ -2993,7 +2992,7 @@ sendNextReportEntrySegment(ReportControl* self)
if ((int) completeMessageSize > maxMmsPduSize) { if ((int) completeMessageSize > maxMmsPduSize) {
if (DEBUG_IED_SERVER) if (DEBUG_IED_SERVER)
printf("IED_SERVER: report message too large %i (max = %i) -> skip message!\n", completeMessageSize, maxMmsPduSize); printf("IED_SERVER: report message too large %u (max = %i) -> skip message!\n", completeMessageSize, maxMmsPduSize);
goto exit_function; goto exit_function;
} }

Loading…
Cancel
Save