Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/rewind.c')
-rw-r--r--newlib/libc/stdio/rewind.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/newlib/libc/stdio/rewind.c b/newlib/libc/stdio/rewind.c
index 58f4cc3e8..2b9f3191f 100644
--- a/newlib/libc/stdio/rewind.c
+++ b/newlib/libc/stdio/rewind.c
@@ -56,26 +56,24 @@ 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)
{
- _CAST_VOID _fseek_r (ptr, fp, 0L, SEEK_SET);
- clearerr (fp);
+ (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)
{
- _CAST_VOID _fseek_r (_REENT, fp, 0L, SEEK_SET);
+ (void) _fseek_r (_REENT, fp, 0L, SEEK_SET);
}
#endif /* !_REENT_ONLY */