tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r603500 - /tomcat/connectors/trunk/jk/native/common/jk_connect.c
Date Wed, 12 Dec 2007 07:41:36 GMT
Author: rjung
Date: Tue Dec 11 23:41:35 2007
New Revision: 603500

URL: http://svn.apache.org/viewvc?rev=603500&view=rev
Log:
Fix for r603400: Use JK_FALSE instead of 0 only
where appropriate.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_connect.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_connect.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_connect.c?rev=603500&r1=603499&r2=603500&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_connect.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_connect.c Tue Dec 11 23:41:35 2007
@@ -768,13 +768,13 @@
                 errno = 0;
             else
                 errno = WSAGetLastError() - WSABASEERR;
-            return nr == JK_FALSE ? JK_FALSE : JK_TRUE;
+            return nr == 0 ? JK_FALSE : JK_TRUE;
         }
         errno = WSAGetLastError() - WSABASEERR;
 #else
         int nr;
         if (ioctl(sock, FIONREAD, (void*)&nr) == 0) {
-            return nr == JK_FALSE ? JK_FALSE : JK_TRUE;
+            return nr == 0 ? JK_FALSE : JK_TRUE;
         }
 #endif
     }



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


Mime
View raw message