This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] setvbuf: Drop setting reent->__cleanup


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8c5911b37c73fa542bc9d01c1aa193538f352a9c

commit 8c5911b37c73fa542bc9d01c1aa193538f352a9c
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sun Mar 13 12:03:03 2016 +0100

    setvbuf: Drop setting reent->__cleanup
    
    The __sinit call added with 1eb6db6 already sets reent->__cleanup.
    
    	* libc/stdio/setvbuf.c (setvbuf): Drop setting reent->__cleanup.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/stdio/setvbuf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/newlib/libc/stdio/setvbuf.c b/newlib/libc/stdio/setvbuf.c
index 52dd306..a8e46a5 100644
--- a/newlib/libc/stdio/setvbuf.c
+++ b/newlib/libc/stdio/setvbuf.c
@@ -203,7 +203,6 @@ nbf:
    */
   if (mode == _IOLBF)
     fp->_flags |= __SLBF;
-  reent->__cleanup = _cleanup_r;
   fp->_bf._base = fp->_p = (unsigned char *) buf;
   fp->_bf._size = size;
   /* fp->_lbfsize is still 0 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]