From 755cefd3f646dcb55e97ab5a388fd9d5b7311215 Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Tue, 3 Jan 2012 19:13:57 +0000 Subject: [PATCH] 2012-01-03 Viachaslau Kulakouski * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock. --- newlib/ChangeLog | 8 ++++++-- newlib/libc/stdlib/__atexit.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b548394821..550cfdda87 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,7 +1,11 @@ +2012-01-03 Viachaslau Kulakouski + + * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock. + 2011-12-20 Aleksandr Platonov - * fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double free in - fclose. Enhance comment. + * libc/stdio/fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double + free in fclose. Enhance comment. 2011-12-19 Jeff Johnston diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c index a26d2eccc4..4687d00230 100644 --- a/newlib/libc/stdlib/__atexit.c +++ b/newlib/libc/stdlib/__atexit.c @@ -74,7 +74,7 @@ _DEFUN (__register_exitproc, if (args == NULL) { #ifndef __SINGLE_THREAD__ - __lock_release(lock); + __lock_release(__atexit_lock); #endif return -1; } -- 2.11.0