* src/toolbox/list.c (list_create): Use LOCK_INIT_OBJECT_LOCK-macro.
authortwisti <none@none>
Fri, 18 May 2007 14:22:19 +0000 (14:22 +0000)
committertwisti <none@none>
Fri, 18 May 2007 14:22:19 +0000 (14:22 +0000)
src/toolbox/list.c

index 06f4d4243557ffbcc051f206774c5a9d783c1505..6b391bab4537464d44623a99cacba3a9aab8f2da 100644 (file)
@@ -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;