Author: nandika
Date: Thu Mar 9 01:12:18 2006
New Revision: 384469
URL: http://svn.apache.org/viewcvs?rev=384469&view=rev
Log:
modified to compile on win32
Modified:
webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c
webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c
webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
Modified: webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c?rev=384469&r1=384468&r2=384469&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c (original)
+++ webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c Thu Mar 9 01:12:18 2006
@@ -90,7 +90,8 @@
AXIS2_ENV_CHECK(env, NULL);
- msg_recv_impl = (axis2_msg_recv_impl_t *) malloc (sizeof (axis2_msg_recv_impl_t));
+ msg_recv_impl = (axis2_msg_recv_impl_t *) AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_msg_recv_impl_t));
if(NULL == msg_recv_impl)
{
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c?rev=384469&r1=384468&r2=384469&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c
(original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_stream.c
Thu Mar 9 01:12:18 2006
@@ -122,10 +122,11 @@
{
apache2_stream_impl_t *stream_impl = NULL;
char *write_buf = NULL;
+ axis2_char_t *buffer = NULL;
AXIS2_ENV_CHECK(env, AXIS2_CRTICAL_FAILURE);
AXIS2_PARAM_CHECK((*env)->error, buf, AXIS2_FAILURE);
stream_impl = AXIS2_INTF_TO_IMPL(stream);
- axis2_char_t *buffer = (axis2_char_t*)buf;
+ buffer = (axis2_char_t*)buf;
if(count <= 0)
{
return count;
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c?rev=384469&r1=384468&r2=384469&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
(original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
Thu Mar 9 01:12:18 2006
@@ -30,6 +30,8 @@
#include <http_core.h>
#include <http_protocol.h>
+
+#define READ_SIZE 32
/**
* @brief Apahche2 Worker struct impl
* Axis2 Apache2 Worker impl
@@ -337,7 +339,7 @@
{
int read = 0;
int write = 0;
- int READ_SIZE = 32;
+
char buf[READ_SIZE];
read = AXIS2_STREAM_READ(stream, env, buf, READ_SIZE);
if(read < 0)
|