jdk/src/solaris/native/sun/nio/ch/InheritedChannel.c
changeset 895 67f1dc69ad10
parent 2 90ce3da70b43
child 1247 b4c26443dee5
--- a/jdk/src/solaris/native/sun/nio/ch/InheritedChannel.c	Thu Jul 24 12:40:30 2008 +0100
+++ b/jdk/src/solaris/native/sun/nio/ch/InheritedChannel.c	Thu Jul 24 12:46:41 2008 +0100
@@ -88,7 +88,8 @@
 JNIEXPORT jint JNICALL
 Java_sun_nio_ch_InheritedChannel_soType0(JNIEnv *env, jclass cla, jint fd)
 {
-    int sotype, arglen=sizeof(sotype);
+    int sotype;
+    socklen_t arglen=sizeof(sotype);
     if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void *)&sotype, &arglen) == 0) {
         if (sotype == SOCK_STREAM)
             return sun_nio_ch_InheritedChannel_SOCK_STREAM;