mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 13:56:17 +08:00
Update to FreeBSD head 2017-08-01
Git mirror commit f5002f5e5f78cae9f0269d812dc0aedb0339312c. Update #3472.
This commit is contained in:
@@ -1519,7 +1519,7 @@ m_uiotombuf(struct uio *uio, int how, int len, int align, int flags)
|
||||
* the total data supplied by the uio.
|
||||
*/
|
||||
if (len > 0)
|
||||
total = min(uio->uio_resid, len);
|
||||
total = (uio->uio_resid < len) ? uio->uio_resid : len;
|
||||
else
|
||||
total = uio->uio_resid;
|
||||
|
||||
|
Reference in New Issue
Block a user