mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
MFC: Fix fread() to return a correct value on platforms where sizeof(int) !=
sizeof(size_t), i.e. on all 64-bit platforms. Approved by: re (kib)
This commit is contained in:
parent
b09a01d59a
commit
ad1b912506
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/releng/7.1/; revision=186042
@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$");
|
||||
size_t
|
||||
fread(void * __restrict buf, size_t size, size_t count, FILE * __restrict fp)
|
||||
{
|
||||
int ret;
|
||||
size_t ret;
|
||||
|
||||
FLOCKFILE(fp);
|
||||
ret = __fread(buf, size, count, fp);
|
||||
|
Loading…
Reference in New Issue
Block a user