tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r525493 - /tomcat/connectors/trunk/jni/native/src/multicast.c
Date Wed, 04 Apr 2007 11:25:30 GMT
Author: mturk
Date: Wed Apr  4 04:25:29 2007
New Revision: 525493

URL: http://svn.apache.org/viewvc?view=rev&rev=525493
Log:
Fix compile time warning. No functional change

Modified:
    tomcat/connectors/trunk/jni/native/src/multicast.c

Modified: tomcat/connectors/trunk/jni/native/src/multicast.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/multicast.c?view=diff&rev=525493&r1=525492&r2=525493
==============================================================================
--- tomcat/connectors/trunk/jni/native/src/multicast.c (original)
+++ tomcat/connectors/trunk/jni/native/src/multicast.c Wed Apr  4 04:25:29 2007
@@ -58,8 +58,11 @@
                                              jlong sock, jboolean opt)
 {
     tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    apr_byte_t on = 0;
     UNREFERENCED_STDARGS;
-    return (jint)apr_mcast_loopback(s->sock, opt == JNI_TRUE ? 1 : 0);
+    if (opt)
+        on = 1;
+    return (jint)apr_mcast_loopback(s->sock, on);
 };
 
 TCN_IMPLEMENT_CALL(jint, Mulicast, ointerface)(TCN_STDARGS,



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message