mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[fix][ci]Fixed CI compilation failure in sal/src/sal_socket.c
This commit is contained in:
1 parent
e1c1a07c48
commit
b525d2c535
1 file changed
-3
@@ -669,7 +669,6 @@ int sal_bind(int socket, const struct sockaddr *name, socklen_t namelen)
|
||||
{
|
||||
struct sal_socket *sock;
|
||||
struct sal_proto_family *pf;
|
||||
struct sockaddr_un *addr_un = RT_NULL;
|
||||
ip_addr_t input_ipaddr;
|
||||
|
||||
RT_ASSERT(name);
|
||||
@@ -677,8 +676,6 @@ int sal_bind(int socket, const struct sockaddr *name, socklen_t namelen)
|
||||
/* get the socket object by socket descriptor */
|
||||
SAL_SOCKET_OBJ_GET(sock, socket);
|
||||
|
||||
addr_un = (struct sockaddr_un *)name;
|
||||
|
||||
#define IS_INET_ADDR_FAMILY(_af) ((_af) == AF_INET) || ((_af) == AF_INET6)
|
||||
if (IS_INET_ADDR_FAMILY(name->sa_family))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user