6989690: java/net native code compiler warnings
authorchegar
Tue, 12 Oct 2010 11:11:32 +0100
changeset 6886 d818a2dfb100
parent 6885 5605d7d60c9c
child 6887 b74bcf130b67
child 6888 83b7b1e3301c
6989690: java/net native code compiler warnings Reviewed-by: alanb
jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
jdk/src/solaris/native/sun/net/spi/DefaultProxySelector.c
--- a/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c	Tue Oct 12 09:46:17 2010 +0100
+++ b/jdk/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/jdk/src/solaris/native/sun/net/spi/DefaultProxySelector.c	Tue Oct 12 09:46:17 2010 +0100
+++ b/jdk/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;