mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 21:41:28 +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);
|
||||
return -1;
|
||||
}
|
||||
ret = len < datagram_len ? len :datagram_len;
|
||||
ret = LWIP_MIN(len, datagram_len);
|
||||
}
|
||||
|
||||
sock_set_errno(sock, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user