tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject [PATCH] fix syntax error in mod_jk2 file jk_channel_apr_socket.c
Date Thu, 13 Mar 2003 13:28:44 GMT
I saw the error with IBM's native compiler for AIX, but it doesn't seem 
to be a matter of extreme pickiness.

Here are the error messages:

"../../common/jk_channel_apr_socket.c", line 229.56: 1506-226 (S) The 
":" operator is not allowed between "int" and "char[37]".
"../../common/jk_channel_apr_socket.c", line 258.56: 1506-226 (S) The 
":" operator is not allowed between "int" and "char[37]".

The code in error is

   remote_sa->next ? JK_LOG_DEBUG : JK_LOG_ERROR,

It looks simple enough, but JK_LOG_DEBUG and JK_LOG_ERROR expand to

__FILE__, __LINE__, something_else

so what the compiler actually sees is a mess.

Here is a fix:

http://www.apache.org/~trawick/jk2_cc_patch_20030313

(Funny, this code looks a lot like some I hacked in Apache 2's mod_proxy.)

Thanks,

Jeff


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


Mime
View raw message