costin 02/05/23 16:33:19 Modified: jk/native2/common jk_msg_ajp.c jk_requtil.c jk/native2/include jk_msg.h Log: Reduce the warnings. There are more signed/unsigned char problems, I'll do another pass. Revision Changes Path 1.15 +1 -1 jakarta-tomcat-connectors/jk/native2/common/jk_msg_ajp.c Index: jk_msg_ajp.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_msg_ajp.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- jk_msg_ajp.c 16 May 2002 21:03:44 -0000 1.14 +++ jk_msg_ajp.c 23 May 2002 23:33:18 -0000 1.15 @@ -356,7 +356,7 @@ return rc; } -static unsigned char *jk2_msg_ajp_getString(jk_env_t *env, jk_msg_t *msg) +static char *jk2_msg_ajp_getString(jk_env_t *env, jk_msg_t *msg) { int size = jk2_msg_ajp_getInt(env, msg); int start = msg->pos; 1.20 +2 -2 jakarta-tomcat-connectors/jk/native2/common/jk_requtil.c Index: jk_requtil.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_requtil.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- jk_requtil.c 23 May 2002 14:54:07 -0000 1.19 +++ jk_requtil.c 23 May 2002 23:33:19 -0000 1.20 @@ -773,8 +773,8 @@ { const unsigned char *s = (const unsigned char *)path; unsigned char *d = (unsigned char *)dest; - unsigned char *e = dest + destsize - 1; - unsigned char *ee = dest + destsize - 3; + unsigned char *e = (unsigned char *)(dest + destsize - 1); + unsigned char *ee = (unsigned char *)(dest + destsize - 3); unsigned c; while ((c = *s)) { 1.9 +1 -1 jakarta-tomcat-connectors/jk/native2/include/jk_msg.h Index: jk_msg.h =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_msg.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- jk_msg.h 16 May 2002 20:49:53 -0000 1.8 +++ jk_msg.h 23 May 2002 23:33:19 -0000 1.9 @@ -159,7 +159,7 @@ The buffer is internal to the message, you must save or make sure the message lives long enough. */ - unsigned char *(*getString)(struct jk_env *env, struct jk_msg *_this); + char *(*getString)(struct jk_env *env, struct jk_msg *_this); /** Return a byte[] and it's length. * The buffer is internal to the message, you must save
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>