From c77672c0fd86170f7128b19bb4030710c41ab794 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 16 Sep 2004 21:18:50 +0000 Subject: [PATCH] 2004-09-16 Antony King * libc/stdio64/freopen64.c: Remove casting of fp lock to _LOCK_RECURSIVE_T. --- newlib/ChangeLog | 5 +++++ newlib/libc/stdio64/freopen64.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c24d76cfe..2dfa2d0cb 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2004-09-16 Antony King + + * libc/stdio64/freopen64.c: Remove casting of fp lock to + _LOCK_RECURSIVE_T. + 2004-09-16 Antony King * libc/time/tzlock.c: Add default stubs that use generic 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; -- 2.43.5