tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r604253 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c common/jk_service.h
Date Fri, 14 Dec 2007 18:50:46 GMT
Author: rjung
Date: Fri Dec 14 10:50:44 2007
New Revision: 604253

URL: http://svn.apache.org/viewvc?rev=604253&view=rev
Log:
Use size_t instead of int for string lengths.

Modified:
    tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
    tomcat/connectors/trunk/jk/native/common/jk_service.h

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=604253&r1=604252&r2=604253&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Fri Dec 14 10:50:44 2007
@@ -247,7 +247,7 @@
 
 static void * JK_METHOD ws_next_vhost(void *d);
 
-static void JK_METHOD ws_vhost_to_text(void *d, char *buf, int len);
+static void JK_METHOD ws_vhost_to_text(void *d, char *buf, size_t len);
 
 static jk_uri_worker_map_t * JK_METHOD ws_vhost_to_uw_map(void *d);
 
@@ -465,10 +465,10 @@
     return s->next;
 }
 
-static void JK_METHOD ws_vhost_to_text(void *d, char *buf, int len)
+static void JK_METHOD ws_vhost_to_text(void *d, char *buf, size_t len)
 {
     server_rec *s = (server_rec *)d;
-    int used = 0;
+    size_t used = 0;
 
     if (s->server_hostname)
         used += strlen(s->server_hostname);

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=604253&r1=604252&r2=604253&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 Fri Dec 14 10:50:44 2007
@@ -261,7 +261,7 @@
 
 static void * JK_METHOD ws_next_vhost(void *d);
 
-static void JK_METHOD ws_vhost_to_text(void *d, char *buf, int len);
+static void JK_METHOD ws_vhost_to_text(void *d, char *buf, size_t len);
 
 static jk_uri_worker_map_t * JK_METHOD ws_vhost_to_uw_map(void *d);
 
@@ -497,10 +497,10 @@
     return s->next;
 }
 
-static void JK_METHOD ws_vhost_to_text(void *d, char *buf, int len)
+static void JK_METHOD ws_vhost_to_text(void *d, char *buf, size_t len)
 {
     server_rec *s = (server_rec *)d;
-    int used = 0;
+    size_t used = 0;
 
     if (s->server_hostname)
         used += strlen(s->server_hostname);

Modified: tomcat/connectors/trunk/jk/native/common/jk_service.h
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_service.h?rev=604253&r1=604252&r2=604253&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_service.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_service.h Fri Dec 14 10:50:44 2007
@@ -292,7 +292,7 @@
     /*
      * String representation of a vhost
      */
-    void (JK_METHOD * vhost_to_text) (void *d, char *buf, int len);
+    void (JK_METHOD * vhost_to_text) (void *d, char *buf, size_t len);
 
     /*
      * Get uw_map associated with a vhost



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


Mime
View raw message