Fix FreeRTOS-Plus device defender, shadow and job demo warnings (#1193)

* Fix FreeRTOS-Plus device defender, shadow and job demo warnings
* Cast to void * for vPortFree
This commit is contained in:
chinglee-iot 2024-03-26 12:23:45 +08:00 committed by GitHub
parent c5c41ef3af
commit bc5587ce5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 27 additions and 10 deletions

View file

@ -363,6 +363,10 @@ static MQTTStatus_t prvProcessLoopWithTimeout( MQTTContext_t * pMqttContext,
/*-----------------------------------------------------------*/
extern UBaseType_t uxRand( void );
/*-----------------------------------------------------------*/
static int32_t prvGenerateRandomNumber()
{
return( uxRand() & INT32_MAX );