lwip_recvfrom: use LWIP_MIN instead of self-coded min

This commit is contained in:
goldsimon 2017-04-20 22:07:08 +02:00
parent dbc969c139
commit 4d6b90727f

View File

@ -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);