axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r954270 - /axis/axis2/c/core/trunk/util/src/network_handler.c
Date Sun, 13 Jun 2010 17:24:08 GMT
Author: damitha
Date: Sun Jun 13 17:24:08 2010
New Revision: 954270

URL: http://svn.apache.org/viewvc?rev=954270&view=rev
Log:
Applied the patch sent by Akos Marton in axis-c-dev list, on using socklen_t * instead of
int *.

Modified:
    axis/axis2/c/core/trunk/util/src/network_handler.c

Modified: axis/axis2/c/core/trunk/util/src/network_handler.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/network_handler.c?rev=954270&r1=954269&r2=954270&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/network_handler.c (original)
+++ axis/axis2/c/core/trunk/util/src/network_handler.c Sun Jun 13 17:24:08 2010
@@ -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));



Mime
View raw message