mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 05:14:27 +08:00
net/local: fix typo in config macro name
This commit is contained in:
committed by
Gregory Nutt
parent
8eaa587c98
commit
31f3f990c3
@@ -298,7 +298,7 @@ static int local_bind(FAR struct socket *psock,
|
||||
{
|
||||
/* Bind a local TCP/IP stream or datagram socket */
|
||||
|
||||
#if defined(ONFIG_NET_TCP) || defined(CONFIG_NET_LOCAL_DGRAM)
|
||||
#if defined(CONFIG_NET_LOCAL_STREAM) || defined(CONFIG_NET_LOCAL_DGRAM)
|
||||
#ifdef CONFIG_NET_LOCAL_STREAM
|
||||
case SOCK_STREAM:
|
||||
#endif
|
||||
@@ -318,7 +318,7 @@ static int local_bind(FAR struct socket *psock,
|
||||
}
|
||||
}
|
||||
break;
|
||||
#endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM*/
|
||||
#endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM */
|
||||
|
||||
default:
|
||||
ret = -EBADF;
|
||||
@@ -788,7 +788,7 @@ static int local_close(FAR struct socket *psock)
|
||||
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM*/
|
||||
#endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM */
|
||||
|
||||
default:
|
||||
return -EBADF;
|
||||
|
||||
Reference in New Issue
Block a user