changeset 3065:4dbd83eb0250

6989690: java/net native code compiler warnings Reviewed-by: alanb
author chegar
date Tue, 12 Oct 2010 11:11:32 +0100
parents 1d94b33a8f59
children a4fd754f895d df896f3e6651
files src/solaris/native/java/net/PlainDatagramSocketImpl.c src/solaris/native/sun/net/spi/DefaultProxySelector.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/PlainDatagramSocketImpl.c	Tue Oct 12 09:46:17 2010 +0100
+++ b/src/solaris/native/java/net/PlainDatagramSocketImpl.c	Tue Oct 12 11:11:32 2010 +0100
@@ -2255,7 +2255,7 @@
             {
                 struct in_addr in;
                 struct in_addr *inP = ∈
-                int len = sizeof(struct in_addr);
+                socklen_t len = sizeof(struct in_addr);
 
 #ifdef __linux__
                 struct ip_mreqn mreqn;
--- a/src/solaris/native/sun/net/spi/DefaultProxySelector.c	Tue Oct 12 09:46:17 2010 +0100
+++ b/src/solaris/native/sun/net/spi/DefaultProxySelector.c	Tue Oct 12 11:11:32 2010 +0100
@@ -158,7 +158,7 @@
   char *phost = NULL;
   char *mode = NULL;
   int pport = 0;
-  int use_proxy;
+  int use_proxy = 0;
   int use_same_proxy = 0;
   const char* urlhost;
   jobject isa = NULL;