mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
net/socket: For consistency in naming, change the name of sock_release() to psock_release().
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user