diff options
Diffstat (limited to 'newlib/libc/stdio/rewind.c')
-rw-r--r-- | newlib/libc/stdio/rewind.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/newlib/libc/stdio/rewind.c b/newlib/libc/stdio/rewind.c index 2b9f3191f..58f4cc3e8 100644 --- a/newlib/libc/stdio/rewind.c +++ b/newlib/libc/stdio/rewind.c @@ -56,24 +56,26 @@ No supporting OS subroutines are required. static char sccsid[] = "%W% (Berkeley) %G%"; #endif /* LIBC_SCCS and not lint */ +#include <_ansi.h> +#include <reent.h> #include <stdio.h> -void -_DEFUN (_rewind_r, (ptr, fp), - struct _reent * ptr _AND - register FILE * fp) +_VOID +_DEFUN(_rewind_r, (ptr, fp), + struct _reent * ptr _AND + register FILE * fp) { - (void) _fseek_r (ptr, fp, 0L, SEEK_SET); - clearerr(fp); + _CAST_VOID _fseek_r (ptr, fp, 0L, SEEK_SET); + clearerr (fp); } #ifndef _REENT_ONLY -void -_DEFUN (rewind, (fp), - register FILE * fp) +_VOID +_DEFUN(rewind, (fp), + register FILE * fp) { - (void) _fseek_r (_REENT, fp, 0L, SEEK_SET); + _CAST_VOID _fseek_r (_REENT, fp, 0L, SEEK_SET); } #endif /* !_REENT_ONLY */ |