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/getc.c')
-rw-r--r--newlib/libc/stdio/getc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/getc.c b/newlib/libc/stdio/getc.c
index 355b19131..7951cdc93 100644
--- a/newlib/libc/stdio/getc.c
+++ b/newlib/libc/stdio/getc.c
@@ -105,9 +105,11 @@ _DEFUN(getc, (fp),
register FILE *fp)
{
int result;
- CHECK_INIT (_REENT, fp);
+ struct _reent *reent = _REENT;
+
+ CHECK_INIT (reent, fp);
_newlib_flockfile_start (fp);
- result = __sgetc_r (_REENT, fp);
+ result = __sgetc_r (reent, fp);
_newlib_flockfile_end (fp);
return result;
}