mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-05-12 19:52:55 -04:00
Fix MQTT keep alive and winsim logging warnings (#1209)
* Fix MQTT keep alive and winsim logging warnigs * Fix winsim logging warnings * Fix winsim logging warnings
This commit is contained in:
parent
2b499ab780
commit
469b8ad175
2 changed files with 5 additions and 2 deletions
|
|
@ -397,7 +397,7 @@ void vLoggingPrintf( const char * pcFormat,
|
|||
pcTarget--;
|
||||
}
|
||||
|
||||
sscanf( pcTarget, "%8X", &ulIPAddress );
|
||||
( void ) sscanf( pcTarget, "%8X", &ulIPAddress );
|
||||
rc = sprintf( pcTarget, "%lu.%lu.%lu.%lu",
|
||||
( unsigned long ) ( ulIPAddress >> 24UL ),
|
||||
( unsigned long ) ( ( ulIPAddress >> 16UL ) & 0xffUL ),
|
||||
|
|
@ -601,7 +601,7 @@ static void prvLogToFile( const char * pcMessage,
|
|||
remove( pcFullLogFileName );
|
||||
}
|
||||
|
||||
rename( pcLogFileName, pcFullLogFileName );
|
||||
( void ) rename( pcLogFileName, pcFullLogFileName );
|
||||
ulSizeOfLoggingFile = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,6 +71,9 @@
|
|||
/* Transport interface include. */
|
||||
#include "transport_plaintext.h"
|
||||
|
||||
/* FreeRTOS+TCP IP config include. */
|
||||
#include "FreeRTOSIPConfig.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Compile time error for undefined configs. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue