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:
Tony Josi 2024-04-17 16:27:30 +05:30 committed by GitHub
parent 2b499ab780
commit 469b8ad175
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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. */