summaryrefslogtreecommitdiff
path: root/server/vhost.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-06-06 21:26:56 +0000
committerStefan Fritsch <sf@apache.org>2011-06-06 21:26:56 +0000
commitc9fd2623da21dc757571e93f8c14344946e59ec7 (patch)
tree97105b5ef35c293af0ec20d6e04492bf889a9098 /server/vhost.c
parent8b98cff9529e5842e292caf5417e425f18d31038 (diff)
downloadhttpd-c9fd2623da21dc757571e93f8c14344946e59ec7.tar.gz
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 'server/vhost.c')
-rw-r--r--server/vhost.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/vhost.c b/server/vhost.c
index 7763eddd5f..c71c5d8c77 100644
--- a/server/vhost.c
+++ b/server/vhost.c
@@ -39,7 +39,9 @@
#include <arpa/inet.h>
#endif
-APLOG_USE_MODULE(core);
+/* we know core's module_index is 0 */
+#undef APLOG_MODULE_INDEX
+#define APLOG_MODULE_INDEX AP_CORE_MODULE_INDEX
/*
* After all the definitions there's an explanation of how it's all put