summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio64/freopen64.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-09-16 21:18:50 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-09-16 21:18:50 +0000
commitc77672c0fd86170f7128b19bb4030710c41ab794 (patch)
tree234550e9a7d4272a5d6de2cfa010cd5a2647969e /newlib/libc/stdio64/freopen64.c
parent5c44c2e54639389e7b72d6307ca0a5863bfe142b (diff)
downloadcygnal-c77672c0fd86170f7128b19bb4030710c41ab794.tar.gz
cygnal-c77672c0fd86170f7128b19bb4030710c41ab794.tar.bz2
cygnal-c77672c0fd86170f7128b19bb4030710c41ab794.zip
2004-09-16 Antony King <antony.king@st.com>
* libc/stdio64/freopen64.c: Remove casting of fp lock to _LOCK_RECURSIVE_T.
Diffstat (limited to 'newlib/libc/stdio64/freopen64.c')
-rw-r--r--newlib/libc/stdio64/freopen64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio64/freopen64.c b/newlib/libc/stdio64/freopen64.c
index 42fe6fb22..fc846595e 100644
--- a/newlib/libc/stdio64/freopen64.c
+++ b/newlib/libc/stdio64/freopen64.c
@@ -157,7 +157,7 @@ _DEFUN (_freopen64_r, (ptr, file, mode, fp),
ptr->_errno = e; /* restore in case _close clobbered */
_funlockfile(fp);
#ifndef __SINGLE_THREAD__
- __lock_close_recursive (*(_LOCK_RECURSIVE_T *)&fp->_lock);
+ __lock_close_recursive (fp->_lock);
#endif
__sfp_lock_release ();
return NULL;