Fix a few warnings introduced with the last commit

This commit is contained in:
Gregory Nutt 2015-01-17 14:25:40 -06:00
parent f7681dbb43
commit b80cdb3880
2 changed files with 2 additions and 2 deletions

View File

@ -511,7 +511,7 @@ int psock_connect(FAR struct socket *psock, FAR const struct sockaddr *addr,
#ifdef CONFIG_NET_UDP
case SOCK_DGRAM:
{
ret = udp_connect(psock->s_conn, inaddr);
ret = udp_connect(psock->s_conn, addr);
if (ret < 0)
{
err = -ret;

View File

@ -528,7 +528,7 @@ ssize_t psock_sendto(FAR struct socket *psock, FAR const void *buf,
/* Setup the UDP socket */
conn = (FAR struct udp_conn_s *)psock->s_conn;
ret = udp_connect(conn, into);
ret = udp_connect(conn, to);
if (ret < 0)
{
net_unlock(save);