Author: rjung Date: Wed Mar 11 21:43:04 2009 New Revision: 752636 URL: http://svn.apache.org/viewvc?rev=752636&view=rev Log: Replace verbatim constant by a define.
Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c 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=752636&r1=752635&r2=752636&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 Wed Mar 11 21:43:04 2009 @@ -86,6 +86,7 @@ #define JK_MAGIC_TYPE ("application/x-jakarta-servlet") #define NULL_FOR_EMPTY(x) ((x && !strlen(x)) ? NULL : x) #define STRNULL_FOR_NULL(x) ((x) ? (x) : "(null)") +#define INITIAL_LOG_FORMAT_ARRAY_SZ (15) /* * If you are not using SSL, comment out the following line. It will make @@ -1628,7 +1629,7 @@ static array_header *parse_request_log_string(pool * p, const char *s, const char **err) { - array_header *a = ap_make_array(p, 15, sizeof(request_log_format_item)); + array_header *a = ap_make_array(p, INITIAL_LOG_FORMAT_ARRAY_SZ, sizeof(request_log_format_item)); char *res; while (*s) { 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=752636&r1=752635&r2=752636&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 Wed Mar 11 21:43:04 2009 @@ -129,6 +129,7 @@ #define NULL_FOR_EMPTY(x) ((x && !strlen(x)) ? NULL : x) #define STRNULL_FOR_NULL(x) ((x) ? (x) : "(null)") #define JK_LOG_LOCK_KEY ("jk_log_lock_key") +#define INITIAL_LOG_FORMAT_ARRAY_SZ (15) /* * If you are not using SSL, comment out the following line. It will make * apache run faster. @@ -1713,7 +1714,7 @@ const char **err) { apr_array_header_t *a = - apr_array_make(p, 15, sizeof(request_log_format_item)); + apr_array_make(p, INITIAL_LOG_FORMAT_ARRAY_SZ, sizeof(request_log_format_item)); char *res; while (*s) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org