mirror of
https://github.com/FreeRTOS/FreeRTOS-Plus-TCP
synced 2025-10-24 12:02:37 +08:00
Fix compilation warning with new code (#764)
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
This commit is contained in:
@@ -514,7 +514,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
const uint8_t * ucBytes = &( pxAddresses->ulIPAddress );
|
||||
const uint8_t * ucBytes = ( const uint8_t * ) &( pxAddresses->ulIPAddress );
|
||||
|
||||
pxNewAddress = pxNew_AddrInfo( xDNSCache[ uxIndex ].pcName, FREERTOS_AF_INET4, ucBytes );
|
||||
}
|
||||
|
||||
@@ -1358,7 +1358,7 @@ static int32_t prvSendUDPPacket( const FreeRTOS_Socket_t * pxSocket,
|
||||
{
|
||||
if( ipconfigIS_VALID_PROG_ADDRESS( pxSocket->u.xUDP.pxHandleSent ) )
|
||||
{
|
||||
pxSocket->u.xUDP.pxHandleSent( pxSocket, uxTotalDataLength );
|
||||
pxSocket->u.xUDP.pxHandleSent( ( FreeRTOS_Socket_t * ) pxSocket, uxTotalDataLength );
|
||||
}
|
||||
}
|
||||
#endif /* ipconfigUSE_CALLBACKS */
|
||||
|
||||
Reference in New Issue
Block a user