Fix a few warnings introduced with the last commit
This commit is contained in:
parent
f7681dbb43
commit
b80cdb3880
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user