net/socket: For consistency in naming, change the name of sock_release() to psock_release().

This commit is contained in:
Gregory Nutt 2018-11-27 07:50:09 -06:00
parent b8cc5ef757
commit 6941f916ce
4 changed files with 7 additions and 7 deletions

View File

@ -146,7 +146,7 @@ int net_clone(FAR struct socket *psock1, FAR struct socket *psock2)
* the connection.
*/
sock_release(psock2);
psock_release(psock2);
}
}
#endif

View File

@ -110,7 +110,7 @@ int psock_close(FAR struct socket *psock)
/* Then release our reference on the socket structure containing the connection */
sock_release(psock);
psock_release(psock);
return OK;
}

View File

@ -190,7 +190,7 @@ int sockfd_allocate(int minsd)
}
/****************************************************************************
* Name: sock_release
* Name: psock_release
*
* Description:
* Free a socket.
@ -203,7 +203,7 @@ int sockfd_allocate(int minsd)
*
****************************************************************************/
void sock_release(FAR struct socket *psock)
void psock_release(FAR struct socket *psock)
{
if (psock != NULL)
{
@ -259,7 +259,7 @@ void sockfd_release(int sockfd)
if (psock)
{
sock_release(psock);
psock_release(psock);
}
}

View File

@ -166,7 +166,7 @@ extern "C"
int sockfd_allocate(int minsd);
/****************************************************************************
* Name: sock_release
* Name: psock_release
*
* Description:
* Free a socket.
@ -179,7 +179,7 @@ int sockfd_allocate(int minsd);
*
****************************************************************************/
void sock_release(FAR struct socket *psock);
void psock_release(FAR struct socket *psock);
/****************************************************************************
* Name: sockfd_release