summaryrefslogtreecommitdiffstats
path: root/modules/echo/mod_echo.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-06-06 23:26:56 +0200
committerStefan Fritsch <sf@apache.org>2011-06-06 23:26:56 +0200
commitc9fd2623da21dc757571e93f8c14344946e59ec7 (patch)
tree97105b5ef35c293af0ec20d6e04492bf889a9098 /modules/echo/mod_echo.c
parentTraceEnable is per-virtualhost, not just per-server. (diff)
downloadapache2-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/echo/mod_echo.c')
-rw-r--r--modules/echo/mod_echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/echo/mod_echo.c b/modules/echo/mod_echo.c
index f9628b384a..7d21fd5b1c 100644
--- a/modules/echo/mod_echo.c
+++ b/modules/echo/mod_echo.c
@@ -168,7 +168,7 @@ static int process_echo_connection(conn_rec *c)
}
if (!csd) {
- csd = ap_get_module_config(c->conn_config, &core_module);
+ csd = ap_get_core_module_config(c->conn_config);
apr_socket_timeout_set(csd, c->base_server->keep_alive_timeout);
}