diff options
Diffstat (limited to 'newlib/libc/stdlib/quick_exit.c')
-rw-r--r-- | newlib/libc/stdlib/quick_exit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/quick_exit.c b/newlib/libc/stdlib/quick_exit.c index 34f41b737..aaa5f9f7f 100644 --- a/newlib/libc/stdlib/quick_exit.c +++ b/newlib/libc/stdlib/quick_exit.c @@ -44,7 +44,7 @@ struct quick_exit_handler { /** * Lock protecting the handlers list. */ -__LOCK_INIT(static, __atexit_mutex); +__LOCK_INIT(static, __at_quick_exit_mutex); /** * Stack of cleanup handlers. These will be invoked in reverse order when */ @@ -60,10 +60,10 @@ at_quick_exit(void (*func)(void)) if (NULL == h) return (1); h->cleanup = func; - __lock_acquire(__atexit_mutex); + __lock_acquire(__at_quick_exit_mutex); h->next = handlers; handlers = h; - __lock_release(__atexit_mutex); + __lock_release(__at_quick_exit_mutex); return (0); } |