axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r377349 - /webservices/axis2/trunk/c/modules/platforms/windows/thread_windows.c
Date Mon, 13 Feb 2006 11:41:16 GMT
Author: damitha
Date: Mon Feb 13 03:41:11 2006
New Revision: 377349

URL: http://svn.apache.org/viewcvs?rev=377349&view=rev
Log:
mutex header file change

Modified:
    webservices/axis2/trunk/c/modules/platforms/windows/thread_windows.c

Modified: webservices/axis2/trunk/c/modules/platforms/windows/thread_windows.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/platforms/windows/thread_windows.c?rev=377349&r1=377348&r2=377349&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/platforms/windows/thread_windows.c (original)
+++ webservices/axis2/trunk/c/modules/platforms/windows/thread_windows.c Mon Feb 13 03:41:11
2006
@@ -194,15 +194,12 @@
 	return thd->td;
 }
 
-AXIS2_DECLARE(axis2_status_t)
-axis2_thread_once_init(axis2_thread_once_t **control, axis2_allocator_t *allocator)
+AXIS2_DECLARE(axis2_thread_once_t *)
+axis2_thread_once_init(axis2_allocator_t *allocator)
 {
-    *control = AXIS2_MALLOC(allocator, sizeof(**control));
-	if(NULL == *control)
-	{
-		return AXIS2_FAILURE;
-	}
-    return AXIS2_SUCCESS;
+	axis2_thread_once_t *control = NULL;
+    control = AXIS2_MALLOC(allocator, sizeof(*control));
+	return control;
 }
 
 AXIS2_DECLARE(axis2_status_t)



Mime
View raw message