aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/exit.c')
-rw-r--r--newlib/libc/stdlib/exit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c
index a659361..286c20d 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);
}