Fix MQTT keep alive and winsim logging warnings ()

* Fix MQTT keep alive and winsim logging warnigs

* Fix winsim logging warnings

* Fix winsim logging warnings
pull/1210/head
Tony Josi 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--;
}
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…
Cancel
Save