net/tcp/tcp_send_unbuffered.c: Correct a bad signal number
There is no errno ETIMEOUT. Probably should be ETIMEDOUT.
This commit is contained in:
parent
dd5748cee8
commit
45a83e9481
@ -704,7 +704,7 @@ ssize_t psock_tcp_send(FAR struct socket *psock,
|
||||
|
||||
ret = net_timedwait(&state.snd_sem,
|
||||
_SO_TIMEOUT(psock->s_sndtimeo));
|
||||
if (ret != -ETIMEOUT || acked == state.snd_acked)
|
||||
if (ret != -ETIMEDOUT || acked == state.snd_acked)
|
||||
{
|
||||
break; /* Timeout without any progress */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user