Makes the new parameter beeing used when local sockets are disabled.
Should make gcc quite about unused params.
2006-07-11 Roman Kennke <[EMAIL PROTECTED]>
* native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c
(read): Use fd when local sockets are disabled to make the
compiler quite.
(write): Likewise.
/Roman
Index: native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c,v
retrieving revision 1.2
diff -u -1 -2 -r1.2 gnu_java_net_local_LocalSocketImpl.c
--- native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c 11 Jul 2006 19:50:20 -0000 1.2
+++ native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c 11 Jul 2006 21:47:33 -0000
@@ -465,24 +465,25 @@
count = (jint) local_read (fd, (void *) (buffer + off), (int) len);
if (count < 0)
{
_throw (env, "java/io/IOException", local_error ());
}
(*env)->ReleaseByteArrayElements (env, buf, buffer, 0);
TRACE("end");
return count;
#else
(void) this;
+ (void) fd;
(void) buf;
(void) off;
(void) len;
_throw (env, "java/lang/Error", "support for local sockets not available");
return -1;
#endif /* ENABLE_LOCAL_SOCKETS */
}
void
Java_gnu_java_net_local_LocalSocketImpl_write
(JNIEnv *env, jobject this __attribute__((unused)), jint fd, jbyteArray buf,
@@ -499,18 +500,19 @@
}
buffer = (*env)->GetByteArrayElements (env, buf, NULL);
if (local_write (fd, (void *) (buffer + off), (int) len) < 0)
{
_throw (env, "java/io/IOException", local_error ());
}
(*env)->ReleaseByteArrayElements (env, buf, buffer, JNI_ABORT);
TRACE("end");
#else
(void) this;
+ (void) fd;
(void) buf;
(void) off;
(void) len;
_throw (env, "java/lang/Error", "support for local sockets not available");
#endif /* ENABLE_LOCAL_SOCKETS */
}