From bc47d398b27f09cbb044dc40e4e9425fb33be7a9 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Thu, 24 Mar 2005 05:58:52 +0000 Subject: [PATCH] * include/stdio.h (__mingw_fwrite): Change return value to size_t. * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise. --- winsup/mingw/ChangeLog | 6 ++++++ winsup/mingw/include/stdio.h | 2 +- winsup/mingw/mingwex/mingw-fseek.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 76beb3461..21b729f77 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,9 @@ +2005-03-24 Danny Smith + + * include/stdio.h (__mingw_fwrite): Change return value to + size_t. + * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise. + 2005-03-15 Hans Leidekker * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines. diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h index 41508d3f3..a7070101c 100644 --- a/winsup/mingw/include/stdio.h +++ b/winsup/mingw/include/stdio.h @@ -312,7 +312,7 @@ _CRTIMP void __cdecl rewind (FILE*); */ int __cdecl __mingw_fseek (FILE *, long, int); -int __cdecl __mingw_fwrite (const void*, size_t, size_t, FILE*); +size_t __cdecl __mingw_fwrite (const void*, size_t, size_t, FILE*); #define fseek(fp, offset, whence) __mingw_fseek(fp, offset, whence) #define fwrite(buffer, size, count, fp) __mingw_fwrite(buffer, size, count, fp) #endif /* __USE_MINGW_FSEEK */ diff --git a/winsup/mingw/mingwex/mingw-fseek.c b/winsup/mingw/mingwex/mingw-fseek.c index ebec94295..b4f45cc7e 100644 --- a/winsup/mingw/mingwex/mingw-fseek.c +++ b/winsup/mingw/mingwex/mingw-fseek.c @@ -37,7 +37,7 @@ __mingw_fseeko64 (FILE *fp, off64_t offset, int whence) return fseeko64 (fp, offset, whence); } -int +size_t __mingw_fwrite (const void *buffer, size_t size, size_t count, FILE *fp) { # undef fwrite