From ed027a53553d4935d9a65c434de7cb6bd963419c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 2 Sep 2003 22:42:05 +0000 Subject: 2003-09-02 Thomas Pfaff * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout. * libc/stdlib/exit.c : Ditto. * libc/stdlib/on_exit.c: Ditto. --- newlib/libc/stdlib/exit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libc/stdlib/exit.c') diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c index a659361bd..286c20db9 100644 --- a/newlib/libc/stdlib/exit.c +++ b/newlib/libc/stdlib/exit.c @@ -64,7 +64,7 @@ _DEFUN (exit, (code), register int n; int i; - p = &_REENT->_atexit; + p = &_GLOBAL_REENT->_atexit; #ifdef _REENT_SMALL args = p->_on_exit_args_ptr; @@ -98,8 +98,8 @@ _DEFUN (exit, (code), while (p); #endif - if (_REENT->__cleanup) - (*_REENT->__cleanup) (_REENT); + if (_GLOBAL_REENT->__cleanup) + (*_GLOBAL_REENT->__cleanup) (_GLOBAL_REENT); _exit (code); } -- cgit v1.2.3