Fix build issues in MQTT integration tests file
@@ -327,7 +327,7 @@ static void eventCallback( MQTTContext_t * pContext,
*
* @return -1 to represent failure.
*/
-static int32_t failedRecv( NetworkContext_t * pNetworkContext,
+static int32_t failedRecv( const NetworkContext_t * pNetworkContext,
void * pBuffer,
size_t bytesToRecv );
@@ -650,7 +650,7 @@ static MQTTStatus_t publishToTopic( MQTTContext_t * pContext,
packetId );
}
-static int32_t failedRecv( NetworkContext_t * pNetworkContext,
+static int32_t failedRecv( const NetworkContext_t * pNetworkContext,
void * pBuffer,
size_t bytesToRecv )
{
@@ -658,7 +658,7 @@ static int32_t failedRecv( NetworkContext_t * pNetworkContext,
( void ) bytesToRecv;
/* Terminate the TLS+TCP connection with the broker for the test. */
- ( void ) Openssl_Disconnect( pNetworkContext );
+ ( void ) Openssl_Disconnect( ( NetworkContext_t * ) pNetworkContext );
return -1;
}
