mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Update net_timedwait() and net_lockedwait() call sites to handle negated errno in return value
This commit is contained in:
committed by
Gregory Nutt
parent
23edfe2557
commit
547733cbb0
@@ -327,7 +327,7 @@ int sixlowpan_send(FAR struct net_driver_s *dev,
|
||||
ret = net_lockedwait(&sinfo.s_waitsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
sinfo.s_result = -get_errno();
|
||||
sinfo.s_result = ret;
|
||||
}
|
||||
|
||||
/* Make sure that no further interrupts are processed */
|
||||
|
||||
@@ -705,7 +705,7 @@ static int sixlowpan_send_packet(FAR struct socket *psock,
|
||||
ret = net_lockedwait(&sinfo.s_waitsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
sinfo.s_result = -get_errno();
|
||||
sinfo.s_result = ret;
|
||||
}
|
||||
|
||||
/* Make sure that no further interrupts are processed */
|
||||
|
||||
Reference in New Issue
Block a user