From be4bc84ed3450335864a222a7180bae7f353637e Mon Sep 17 00:00:00 2001 From: damitha Date: Sun, 13 Jun 2010 17:24:08 +0000 Subject: 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 --- util/src/network_handler.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'util') 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)); -- cgit v1.1-32-gdbae