You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ka...@apache.org on 2007/03/23 06:28:19 UTC

svn commit: r521593 - in /webservices/axis2/trunk/c/rampart/src/omxmlsec: buffer.c ctx.c key.c

Author: kaushalye
Date: Thu Mar 22 22:28:18 2007
New Revision: 521593

URL: http://svn.apache.org/viewvc?view=rev&rev=521593
Log:
Code improvement in OMXMLSecurity

Modified:
    webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c
    webservices/axis2/trunk/c/rampart/src/omxmlsec/ctx.c
    webservices/axis2/trunk/c/rampart/src/omxmlsec/key.c

Modified: webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c?view=diff&rev=521593&r1=521592&r2=521593
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c (original)
+++ webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c Thu Mar 22 22:28:18 2007
@@ -44,7 +44,7 @@
 
     AXIS2_ENV_CHECK(env, NULL);
 
-    buffer = AXIS2_MALLOC(env->allocator, sizeof(oxs_buffer_t));
+    buffer = (oxs_buffer_t*)AXIS2_MALLOC(env->allocator, sizeof(oxs_buffer_t));
     if (!buffer)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);

Modified: webservices/axis2/trunk/c/rampart/src/omxmlsec/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/omxmlsec/ctx.c?view=diff&rev=521593&r1=521592&r2=521593
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/omxmlsec/ctx.c (original)
+++ webservices/axis2/trunk/c/rampart/src/omxmlsec/ctx.c Thu Mar 22 22:28:18 2007
@@ -55,7 +55,7 @@
     oxs_ctx_t *ctx = NULL;
     AXIS2_ENV_CHECK(env, NULL);
 
-    ctx = AXIS2_MALLOC(env->allocator, sizeof(oxs_ctx_t));
+    ctx = (oxs_ctx_t*)AXIS2_MALLOC(env->allocator, sizeof(oxs_ctx_t));
     if (!ctx)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);

Modified: webservices/axis2/trunk/c/rampart/src/omxmlsec/key.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/omxmlsec/key.c?view=diff&rev=521593&r1=521592&r2=521593
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/omxmlsec/key.c (original)
+++ webservices/axis2/trunk/c/rampart/src/omxmlsec/key.c Thu Mar 22 22:28:18 2007
@@ -117,7 +117,7 @@
 	oxs_key_t *key = NULL;
     AXIS2_ENV_CHECK(env, NULL);
 
-    key = AXIS2_MALLOC(env->allocator, sizeof(oxs_key_t));
+    key = (oxs_key_t*)AXIS2_MALLOC(env->allocator, sizeof(oxs_key_t));
 
     if (!key)
     {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org