mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix a few warnings introduced with the last commit
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user