mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Gustavo Henrique Nihei

parent
fcd69d1cdf
commit
66dbaa4539
@@ -96,7 +96,7 @@ static int _netlib_ipv6adaptor(FAR const struct in6_addr *destipaddr,
|
||||
lifc.lifc_req = NULL;
|
||||
lifc.lifc_len = 0;
|
||||
|
||||
sd = socket(AF_INET6, NETLIB_SOCK_TYPE, 0);
|
||||
sd = socket(NET_SOCK_FAMILY, NET_SOCK_TYPE, NET_SOCK_PROTOCOL);
|
||||
if (sd < 0)
|
||||
{
|
||||
ret = -errno;
|
||||
|
Reference in New Issue
Block a user