mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 18:27:47 -04:00
Address various MISRA warnings v2 (#238)
* Address some MISRA warnings * Change the return type * Update FreeRTOS_Sockets.c
This commit is contained in:
parent
0341050048
commit
cacf4ad7f9
5 changed files with 20 additions and 14 deletions
|
@ -205,7 +205,7 @@ struct xSOCKET;
|
|||
typedef struct xSOCKET *Socket_t;
|
||||
typedef struct xSOCKET const * ConstSocket_t;
|
||||
|
||||
static portINLINE int prvSocketValid( Socket_t xSocket )
|
||||
static portINLINE unsigned int prvSocketValid( Socket_t xSocket )
|
||||
{
|
||||
/* coverity[misra_c_2012_rule_11_4_violation] */
|
||||
return ( ( xSocket != FREERTOS_INVALID_SOCKET ) && ( xSocket != NULL ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue