From 8c5911b37c73fa542bc9d01c1aa193538f352a9c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 13 Mar 2016 12:03:03 +0100 Subject: [PATCH] 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 --- 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 52dd306e5..a8e46a5d0 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 */