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/ftell.c')
-rw-r--r--newlib/libc/stdio/ftell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/stdio/ftell.c b/newlib/libc/stdio/ftell.c
index 74d6d906c..952574159 100644
--- a/newlib/libc/stdio/ftell.c
+++ b/newlib/libc/stdio/ftell.c
@@ -105,11 +105,11 @@ _DEFUN(_ftell_r, (ptr, fp),
{
_fpos_t pos;
- /* Ensure stdio is set up. */
+ _flockfile (fp);
- CHECK_INIT (ptr);
+ /* Ensure stdio is set up. */
- _flockfile (fp);
+ CHECK_INIT (fp);
if (fp->_seek == NULL)
{
@@ -143,7 +143,7 @@ _DEFUN(_ftell_r, (ptr, fp),
if (HASUB (fp))
pos -= fp->_ur;
}
- else if ((fp->_flags & __SWR) && fp->_p != NULL)
+ else if (fp->_flags & __SWR && fp->_p != NULL)
{
/*
* Writing. Any buffered characters cause the