* 20100609.1 (2.3.7-dev) Introduce ap_log_cserror()
* 20100609.2 (2.3.7-dev) Add deferred write pool to core_output_filter_ctx
* 20100625.0 (2.3.7-dev) Add 'userctx' to socache iterator callback prototype
+ * 20100630.0 (2.3.7-dev) make module_levels vector of char instead of int
*/
#define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
-#define MODULE_MAGIC_NUMBER_MAJOR 20100625
+#define MODULE_MAGIC_NUMBER_MAJOR 20100630
#endif
#define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */
struct ap_logconf {
/** The per-module log levels */
- int *module_levels;
+ signed char *module_levels;
/** The log level for this server */
int level;
AP_DECLARE(void) ap_reset_module_loglevels(struct ap_logconf *l, int val)
{
- if (l->module_levels) {
- int i;
- for (i = 0; i < conf_vector_length; i++)
- l->module_levels[i] = val;
- }
+ if (l->module_levels)
+ memset(l->module_levels, val, conf_vector_length);
}
AP_DECLARE(void) ap_set_module_loglevel(apr_pool_t *pool, struct ap_logconf *l,
int index, int level)
{
if (!l->module_levels) {
- l->module_levels = apr_palloc(pool, sizeof(int) * conf_vector_length);
+ l->module_levels = apr_palloc(pool, conf_vector_length);
if (l->level == APLOG_UNSET) {
ap_reset_module_loglevels(l, APLOG_UNSET);
}
l->level = old->level;
if (old->module_levels) {
l->module_levels =
- apr_pmemdup(p, old->module_levels, sizeof(int) * conf_vector_length);
+ apr_pmemdup(p, old->module_levels, conf_vector_length);
}
}
else {