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
pull/1210/head
Tony Josi 10 months ago committed by GitHub
parent 2b499ab780
commit 469b8ad175
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -397,7 +397,7 @@ void vLoggingPrintf( const char * pcFormat,
pcTarget--; pcTarget--;
} }
sscanf( pcTarget, "%8X", &ulIPAddress ); ( void ) sscanf( pcTarget, "%8X", &ulIPAddress );
rc = sprintf( pcTarget, "%lu.%lu.%lu.%lu", rc = sprintf( pcTarget, "%lu.%lu.%lu.%lu",
( unsigned long ) ( ulIPAddress >> 24UL ), ( unsigned long ) ( ulIPAddress >> 24UL ),
( unsigned long ) ( ( ulIPAddress >> 16UL ) & 0xffUL ), ( unsigned long ) ( ( ulIPAddress >> 16UL ) & 0xffUL ),
@ -601,7 +601,7 @@ static void prvLogToFile( const char * pcMessage,
remove( pcFullLogFileName ); remove( pcFullLogFileName );
} }
rename( pcLogFileName, pcFullLogFileName ); ( void ) rename( pcLogFileName, pcFullLogFileName );
ulSizeOfLoggingFile = 0; ulSizeOfLoggingFile = 0;
} }
} }

@ -71,6 +71,9 @@
/* Transport interface include. */ /* Transport interface include. */
#include "transport_plaintext.h" #include "transport_plaintext.h"
/* FreeRTOS+TCP IP config include. */
#include "FreeRTOSIPConfig.h"
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* Compile time error for undefined configs. */ /* Compile time error for undefined configs. */

Loading…
Cancel
Save