Author: mturk
Date: Mon Mar 8 06:53:52 2010
New Revision: 920211
URL: http://svn.apache.org/viewvc?rev=920211&view=rev
Log:
Fix compile time warnings
Modified:
tomcat/jk/trunk/native/common/jk_status.c
Modified: tomcat/jk/trunk/native/common/jk_status.c
URL:
http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_status.c?rev=920211&r1=920210&r2=920211&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_status.c (original)
+++ tomcat/jk/trunk/native/common/jk_status.c Mon Mar 8 06:53:52 2010
@@ -716,7 +716,7 @@
static int status_strftime(time_t clock, int mime, char *buf_time, char
*buf_tz,
jk_logger_t *l)
{
- int rc_time;
+ size_t rc_time;
#ifdef _MT_CODE_PTHREAD
struct tm res;
struct tm *tms = localtime_r(&clock, &res);
@@ -734,7 +734,7 @@
strftime(buf_tz, JK_STATUS_TIME_BUF_SZ, JK_STATUS_TIME_FMT_TZ, tms);
JK_TRACE_EXIT(l);
- return rc_time;
+ return (int)rc_time;
}
@@ -1925,7 +1925,7 @@
if (rc_time > 0 ) {
jk_print_xml_att_string(s, off+2, "error_time_datetime", buf_time);
jk_print_xml_att_string(s, off+2, "error_time_tz", buf_tz);
- jk_print_xml_att_int(s, off+2, "error_time_unix_seconds",
error_time);
+ jk_print_xml_att_int(s, off+2, "error_time_unix_seconds",
(int)error_time);
jk_print_xml_att_int(s, off+2, "error_time_ago", delta_error);
}
/* Terminate the tag */
@@ -2054,7 +2054,7 @@
if (rc_time > 0) {
jk_print_prop_att_string(s, w, name, "error_time_datetime",
buf_time);
jk_print_prop_att_string(s, w, name, "error_time_tz", buf_tz);
- jk_print_prop_att_int(s, w, name, "error_time_unix seconds",
error_time);
+ jk_print_prop_att_int(s, w, name, "error_time_unix seconds",
(int)error_time);
jk_print_prop_att_int(s, w, name, "error_time_ago seconds",
delta_error);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]