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 mi...@apache.org on 2008/06/13 06:22:29 UTC

svn commit: r667332 - /webservices/axis2/trunk/c/util/src/network_handler.c

Author: milinda
Date: Thu Jun 12 21:22:28 2008
New Revision: 667332

URL: http://svn.apache.org/viewvc?rev=667332&view=rev
Log:
fixing linux build break.

Modified:
    webservices/axis2/trunk/c/util/src/network_handler.c

Modified: webservices/axis2/trunk/c/util/src/network_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/network_handler.c?rev=667332&r1=667331&r2=667332&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/network_handler.c (original)
+++ webservices/axis2/trunk/c/util/src/network_handler.c Thu Jun 12 21:22:28 2008
@@ -76,8 +76,8 @@
 	if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
         /* In Win 32 if the socket creation failed it return 0 not a negative value */
     {
-		char buf[AXUTIL_NETWORK_HANDLER_ERRBUFSIZE]; 
-		/* Get the detailed error message */
+		char buf[AXUTIL_NETWORK_HANDLER_ERRBUFSIZE]; 
+		/* Get the detailed error message */
 		axutil_network_handler_get_win32_error_message(env, buf, 
 			AXUTIL_NETWORK_HANDLER_ERRBUFSIZE);	
 
@@ -349,19 +349,20 @@
 											   axis2_char_t *buf, 
 											   unsigned int buf_size)
 {
-	LPVOID lpMsgBuf;	
-	int rc = WSAGetLastError();
-	sprintf( buf, "Winsock error %d: ", rc );
-	FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
-				  NULL,
-	              rc,
-	              MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
-				  (LPTSTR) &lpMsgBuf,
-				  0,
-				  NULL
-				);
-
-	strncat( buf, (char*)lpMsgBuf, buf_size - strlen( buf ) - 1 );
+	LPVOID lpMsgBuf;	
+	int rc = WSAGetLastError();
+	sprintf( buf, "Winsock error %d: ", rc );
+	FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
+				  NULL,
+	              rc,
+	              MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
+				  (LPTSTR) &lpMsgBuf,
+				  0,
+				  NULL
+				);
+
+	strncat( buf, (char*)lpMsgBuf, buf_size - strlen( buf ) - 1 );
 	LocalFree( lpMsgBuf );
 }
-#endif
\ No newline at end of file
+#endif
+