tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r439624 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Date Sat, 02 Sep 2006 17:45:46 GMT
Author: mturk
Date: Sat Sep  2 10:45:46 2006
New Revision: 439624

URL: http://svn.apache.org/viewvc?rev=439624&view=rev
Log:
Fix compile time warnings.

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=439624&r1=439623&r2=439624&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sat Sep  2 10:45:46 2006
@@ -1387,7 +1387,7 @@
  */
 
 static const char *jk_set_request_log_format(cmd_parms * cmd,
-                                             void *dummy, char *format)
+                                             void *dummy, const char *format)
 {
     const char *err_string = NULL;
     server_rec *s = cmd->server;
@@ -1893,7 +1893,7 @@
         }
 
         if (worker) {
-            apr_time_t request_begin;
+            apr_time_t request_begin = 0;
             int is_error = HTTP_INTERNAL_SERVER_ERROR;
             int rc = JK_FALSE;
             apache_private_data_t private_data;
@@ -1914,7 +1914,7 @@
             s.pool = &private_data.p;
             apr_table_setn(r->notes, JK_NOTE_WORKER_TYPE,
                            wc_get_name_for_type(worker->type, xconf->log));
-                           
+
             if (xconf->format != NULL) {
                 request_begin = apr_time_now();
             }
@@ -1972,7 +1972,7 @@
                 apr_time_t rd = apr_time_now() - request_begin;
                 seconds = (long)apr_time_sec(rd);
                 micro = (long)(rd - apr_time_from_sec(seconds));
-                
+
                 duration = apr_psprintf(r->pool, "%.1ld.%.6ld", seconds, micro);
                 apr_table_setn(r->notes, JK_NOTE_REQUEST_DURATION, duration);
                 if (s.jvm_route && *s.jvm_route)



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


Mime
View raw message