diff options
Diffstat (limited to 'FreeRTOS-Plus/Source/Utilities/mbedtls_freertos/mbedtls_bio_freertos_plus_tcp.c')
-rw-r--r-- | FreeRTOS-Plus/Source/Utilities/mbedtls_freertos/mbedtls_bio_freertos_plus_tcp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/FreeRTOS-Plus/Source/Utilities/mbedtls_freertos/mbedtls_bio_freertos_plus_tcp.c b/FreeRTOS-Plus/Source/Utilities/mbedtls_freertos/mbedtls_bio_freertos_plus_tcp.c index f26f3cfbe..4cc1e3cb3 100644 --- a/FreeRTOS-Plus/Source/Utilities/mbedtls_freertos/mbedtls_bio_freertos_plus_tcp.c +++ b/FreeRTOS-Plus/Source/Utilities/mbedtls_freertos/mbedtls_bio_freertos_plus_tcp.c @@ -54,15 +54,13 @@ int mbedtls_platform_send( void * ctx, const unsigned char * buf, size_t len ) { - Socket_t socket; BaseType_t sendStatus = 0; int returnStatus = -1; configASSERT( ctx != NULL ); configASSERT( buf != NULL ); - socket = ( Socket_t ) ctx; - sendStatus = FreeRTOS_send( socket, buf, len, 0 ); + sendStatus = FreeRTOS_send( ( Socket_t ) ctx, buf, len, 0 ); switch( sendStatus ) { @@ -105,16 +103,13 @@ int mbedtls_platform_recv( void * ctx, unsigned char * buf, size_t len ) { - Socket_t socket; BaseType_t recvStatus = 0; int returnStatus = -1; configASSERT( ctx != NULL ); configASSERT( buf != NULL ); - socket = ( Socket_t ) ctx; - - recvStatus = FreeRTOS_recv( socket, buf, len, 0 ); + recvStatus = FreeRTOS_recv( ( Socket_t ) ctx, buf, len, 0 ); switch( recvStatus ) { @@ -139,4 +134,3 @@ int mbedtls_platform_recv( void * ctx, return returnStatus; } - |