Networking: IPv4 getsockname(): Fix a typo that can cause a compile error.

This commit is contained in:
Gregory Nutt 2017-09-19 10:52:01 -06:00
parent b248a6b72b
commit 0eee0f22cd
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
CONFIG_BOARD_LOOPSPERMSEC=5483
CONFIG_BUILTIN=y
CONFIG_ETH0_PHY_DP83848C=y
CONFIG_FS_PROCFS=y
CONFIG_EXAMPLES_NSH=y
CONFIG_HOST_WINDOWS=y
CONFIG_INTELHEX_BINARY=y

View File

@ -112,7 +112,7 @@ int ipv4_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr,
outaddr->sin_port = tcp_conn->lport; /* Already in network byte order */
lipaddr = tcp_conn->u.ipv4.laddr;
ripaddri = tcp_conn->u.ipv4.raddr;
ripaddr = tcp_conn->u.ipv4.raddr;
}
break;
#endif