diff options
author | damitha | 2010-06-13 17:24:08 +0000 |
---|---|---|
committer | damitha | 2010-06-13 17:24:08 +0000 |
commit | be4bc84ed3450335864a222a7180bae7f353637e (patch) | |
tree | 851d84b3ae5d5fac2adf246da3fe714f9fa06988 /util | |
parent | 7a59257f0ddc556cf3ce8e2823e8bd524c1cb9eb (diff) | |
download | axis2c-be4bc84ed3450335864a222a7180bae7f353637e.tar.gz axis2c-be4bc84ed3450335864a222a7180bae7f353637e.tar.bz2 |
Applied the patch sent by Akos Marton in axis-c-dev list, on using socklen_t * instead of int *.
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@954270 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util')
-rw-r--r-- | util/src/network_handler.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/util/src/network_handler.c b/util/src/network_handler.c index 0d11ef2..ae41943 100644 --- a/util/src/network_handler.c +++ b/util/src/network_handler.c @@ -437,11 +437,10 @@ axutil_network_handler_read_dgram( {
struct sockaddr_in sender_address;
int received = 0;
- int sender_address_size = sizeof(sender_address);
-
- received = recvfrom(sock, buffer, *buf_len, 0, (struct sockaddr *)&sender_address,
- &sender_address_size);
-
+ socklen_t sender_address_size;
+
+ sender_address_size = sizeof(sender_address);
+ received = recvfrom(sock, buffer, *buf_len, 0, (struct sockaddr *)&sender_address, &sender_address_size);
#ifdef WIN32
if (SOCKET_ERROR == received)
{
@@ -483,7 +482,7 @@ axutil_network_handler_send_dgram( struct sockaddr_in recv_addr, source_addr;
int send_bytes = 0;
unsigned int recv_addr_size = 0;
- int source_addr_size = sizeof(source_addr);
+ socklen_t source_addr_size = sizeof(source_addr);
recv_addr_size = sizeof(recv_addr);
memset(&recv_addr, 0, sizeof(recv_addr));
|