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:
Ruslan Ermilov 2008-12-13 16:53:35 +00:00
parent b09a01d59a
commit ad1b912506
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/releng/7.1/; revision=186042

View File

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