diff options
author | Stefan Fritsch <sf@apache.org> | 2011-06-06 23:26:56 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-06-06 23:26:56 +0200 |
commit | c9fd2623da21dc757571e93f8c14344946e59ec7 (patch) | |
tree | 97105b5ef35c293af0ec20d6e04492bf889a9098 /modules/test | |
parent | TraceEnable is per-virtualhost, not just per-server. (diff) | |
download | apache2-c9fd2623da21dc757571e93f8c14344946e59ec7.tar.xz apache2-c9fd2623da21dc757571e93f8c14344946e59ec7.zip |
Introduce ap_(get|set)_core_module_config() functions/macros and use them
everywhere.
We know that the core module has module_index 0. Therefore we can save
some pointer operations in ap_get_module_config(cv, &core_module) and
ap_set_module_config(cv, &core_module, val). As these are called rather often,
this may actually have some (small) measurable effect.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/test')
-rw-r--r-- | modules/test/mod_dialup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/test/mod_dialup.c b/modules/test/mod_dialup.c index 034e9a0dd9..316a81cc6c 100644 --- a/modules/test/mod_dialup.c +++ b/modules/test/mod_dialup.c @@ -155,8 +155,7 @@ dialup_handler(request_rec *r) return DECLINED; } - ccfg = ap_get_module_config(r->per_dir_config, - &core_module); + ccfg = ap_get_core_module_config(r->per_dir_config); rv = apr_file_open(&fd, r->filename, APR_READ | APR_BINARY |