From 3594e3e54142a1b85e534968e988c256d96357c2 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 29 Jan 2024 20:53:34 +0800 Subject: [PATCH] net/rpmsgsock: Rename rpmsg_socket_getconnname to rpmsg_socket_getpeername to align with the naming convention of getpeername. Signed-off-by: Xiang Xiao --- net/rpmsg/rpmsg_sockif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index 9931c9903f..7f12350fd1 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -146,7 +146,7 @@ static int rpmsg_socket_bind(FAR struct socket *psock, static int rpmsg_socket_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr, FAR socklen_t *addrlen); -static int rpmsg_socket_getconnname(FAR struct socket *psock, +static int rpmsg_socket_getpeername(FAR struct socket *psock, FAR struct sockaddr *addr, FAR socklen_t *addrlen); static int rpmsg_socket_listen(FAR struct socket *psock, int backlog); @@ -184,7 +184,7 @@ const struct sock_intf_s g_rpmsg_sockif = rpmsg_socket_addref, /* si_addref */ rpmsg_socket_bind, /* si_bind */ rpmsg_socket_getsockname, /* si_getsockname */ - rpmsg_socket_getconnname, /* si_getconnname */ + rpmsg_socket_getpeername, /* si_getpeername */ rpmsg_socket_listen, /* si_listen */ rpmsg_socket_connect, /* si_connect */ rpmsg_socket_accept, /* si_accept */ @@ -679,7 +679,7 @@ static int rpmsg_socket_getsockname(FAR struct socket *psock, return ret; } -static int rpmsg_socket_getconnname(FAR struct socket *psock, +static int rpmsg_socket_getpeername(FAR struct socket *psock, FAR struct sockaddr *addr, FAR socklen_t *addrlen) {