From ec7d893a0c70009f485090fd220863530c2d7867 Mon Sep 17 00:00:00 2001 From: twisti Date: Fri, 18 May 2007 14:22:19 +0000 Subject: [PATCH] * src/toolbox/list.c (list_create): Use LOCK_INIT_OBJECT_LOCK-macro. --- src/toolbox/list.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/toolbox/list.c b/src/toolbox/list.c index 06f4d4243..6b391bab4 100644 --- a/src/toolbox/list.c +++ b/src/toolbox/list.c @@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - $Id: list.c 7905 2007-05-14 14:11:33Z twisti $ + $Id: list.c 7915 2007-05-18 14:22:19Z twisti $ */ @@ -52,9 +52,7 @@ list_t *list_create(s4 nodeoffset) l = NEW(list_t); -#if defined(ENABLE_THREADS) - lock_init_object_lock((java_objectheader *) l); -#endif + LOCK_INIT_OBJECT_LOCK(l); l->first = NULL; l->last = NULL; -- 2.25.1