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 */ /* 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 #ifdef CONFIG_NET_LOCAL_STREAM
case SOCK_STREAM: case SOCK_STREAM:
#endif #endif
@ -318,7 +318,7 @@ static int local_bind(FAR struct socket *psock,
} }
} }
break; break;
#endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM*/ #endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM */
default: default:
ret = -EBADF; ret = -EBADF;
@ -788,7 +788,7 @@ static int local_close(FAR struct socket *psock)
return OK; return OK;
} }
#endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM*/ #endif /* CONFIG_NET_LOCAL_STREAM || CONFIG_NET_LOCAL_DGRAM */
default: default:
return -EBADF; return -EBADF;