mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
lwip_recvfrom: use LWIP_MIN instead of self-coded min
This commit is contained in:
parent
dbc969c139
commit
4d6b90727f
@ -1141,7 +1141,7 @@ lwip_recvfrom(int s, void *mem, size_t len, int flags,
|
|||||||
done_socket(sock);
|
done_socket(sock);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ret = len < datagram_len ? len :datagram_len;
|
ret = LWIP_MIN(len, datagram_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
sock_set_errno(sock, 0);
|
sock_set_errno(sock, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user