Author: mturk
Date: Fri Jul 21 04:14:23 2006
New Revision: 424267

URL: http://svn.apache.org/viewvc?rev=424267&view=rev
Log:
Fix compile time warnings.
I simply hate all those int.size_t transformations.

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

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=424267&r1=424266&r2=424267&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Fri Jul 21 04:14:23 2006
@@ -133,13 +133,13 @@
 
 const char *jk_log_fmt = JK_TIME_FORMAT;
 
-static size_t set_time_str(char *str, int len)
+static int set_time_str(char *str, int len)
 {
     time_t t = time(NULL);
     struct tm *tms;
 
     tms = localtime(&t);
-    return strftime(str, len, jk_log_fmt, tms);
+    return (int)strftime(str, len, jk_log_fmt, tms);
 }
 
 /* Write at most n characters to the buffer in str, return the
@@ -299,7 +299,7 @@
 #endif
         char *f = (char *)(file + strlen(file) - 1);
         va_list args;
-        size_t used = 0;
+        int used = 0;
 
         while (f != file && '\\' != *f && '/' != *f) {
             f--;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to