6679422: networkStream::connect() in ostream.cpp is not 64-bit clean
Reviewed-by: jmasa, xlu
--- a/hotspot/src/share/vm/utilities/ostream.cpp Fri Mar 28 23:35:42 2008 -0700
+++ b/hotspot/src/share/vm/utilities/ostream.cpp Fri Mar 28 23:35:42 2008 -0700
@@ -829,7 +829,7 @@
server.sin_port = htons(port);
server.sin_addr.s_addr = inet_addr(ip);
- if (server.sin_addr.s_addr == (unsigned long)-1) {
+ if (server.sin_addr.s_addr == (uint32_t)-1) {
#ifdef _WINDOWS
struct hostent* host = hpi::get_host_by_name((char*)ip);
#else