svn commit: r186042 - releng/7.1/lib/libc releng/7.1/lib/libc/stdio
stable/7/lib/libc stable/7/lib/libc/stdio
Ruslan Ermilov
ru at FreeBSD.org
Sat Dec 13 08:53:36 PST 2008
Author: ru
Date: Sat Dec 13 16:53:35 2008
New Revision: 186042
URL: http://svn.freebsd.org/changeset/base/186042
Log:
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)
Modified:
stable/7/lib/libc/ (props changed)
stable/7/lib/libc/stdio/fread.c
Changes in other areas also in this revision:
Modified:
releng/7.1/lib/libc/ (props changed)
releng/7.1/lib/libc/stdio/fread.c
Modified: stable/7/lib/libc/stdio/fread.c
==============================================================================
--- stable/7/lib/libc/stdio/fread.c Sat Dec 13 16:13:37 2008 (r186041)
+++ stable/7/lib/libc/stdio/fread.c Sat Dec 13 16:53:35 2008 (r186042)
@@ -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);
More information about the svn-src-stable-7
mailing list