net/local: fix typo in config macro name

This commit is contained in:
Juha Niskanen 2017-10-25 07:23:48 -06:00 committed by Gregory Nutt
parent 8eaa587c98
commit 31f3f990c3

View File

@ -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;