summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2001-02-18 05:26:13 +0100
committerGreg Stein <gstein@apache.org>2001-02-18 05:26:13 +0100
commite78825ca7001ef868b32a2f989a7dc62f2a2a9f6 (patch)
tree373ebdd73ff023587559833464fda9e31e16b357 /modules
parentshift some declarations over to mod_core.h where they're totally private. (diff)
downloadapache2-e78825ca7001ef868b32a2f989a7dc62f2a2a9f6.tar.xz
apache2-e78825ca7001ef868b32a2f989a7dc62f2a2a9f6.zip
- more ap_conf_vector_t fixup.
- break out the cmd_parms to ap_set_config_vectors to clarify/doc what is happening in there and because the function operates independent of cmds. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88227 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/http/http_core.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/modules/http/http_core.c b/modules/http/http_core.c
index 43b11a549b..f9d306ff28 100644
--- a/modules/http/http_core.c
+++ b/modules/http/http_core.c
@@ -1525,7 +1525,7 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg)
int old_overrides = cmd->override;
char *old_path = cmd->path;
core_dir_config *conf;
- void *new_dir_conf = ap_create_per_dir_config(cmd->pool);
+ ap_conf_vector_t *new_dir_conf = ap_create_per_dir_config(cmd->pool);
regex_t *r = NULL;
const command_rec *thiscmd = cmd->cmd;
@@ -1569,8 +1569,8 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg)
}
/* initialize our config and fetch it */
- conf = (core_dir_config *)ap_set_config_vectors(cmd, new_dir_conf,
- &core_module);
+ conf = ap_set_config_vectors(cmd->server, new_dir_conf, cmd->path,
+ &core_module, cmd->pool);
errmsg = ap_walk_config(cmd->directive->first_child, cmd, new_dir_conf);
if (errmsg != NULL)
@@ -1600,9 +1600,7 @@ static const char *urlsection(cmd_parms *cmd, void *mconfig, const char *arg)
core_dir_config *conf;
regex_t *r = NULL;
const command_rec *thiscmd = cmd->cmd;
-
- void *new_url_conf = ap_create_per_dir_config(cmd->pool);
-
+ ap_conf_vector_t *new_url_conf = ap_create_per_dir_config(cmd->pool);
const char *err = ap_check_cmd_context(cmd,
NOT_IN_DIR_LOC_FILE|NOT_IN_LIMIT);
if (err != NULL) {
@@ -1627,8 +1625,8 @@ static const char *urlsection(cmd_parms *cmd, void *mconfig, const char *arg)
}
/* initialize our config and fetch it */
- conf = (core_dir_config *)ap_set_config_vectors(cmd, new_url_conf,
- &core_module);
+ conf = ap_set_config_vectors(cmd->server, new_url_conf, cmd->path,
+ &core_module, cmd->pool);
errmsg = ap_walk_config(cmd->directive->first_child, cmd, new_url_conf);
if (errmsg != NULL)
@@ -1661,10 +1659,9 @@ static const char *filesection(cmd_parms *cmd, void *mconfig, const char *arg)
regex_t *r = NULL;
const command_rec *thiscmd = cmd->cmd;
core_dir_config *c=mconfig;
-
- void *new_file_conf = ap_create_per_dir_config(cmd->pool);
-
+ ap_conf_vector_t *new_file_conf = ap_create_per_dir_config(cmd->pool);
const char *err = ap_check_cmd_context(cmd, NOT_IN_LIMIT|NOT_IN_LOCATION);
+
if (err != NULL) {
return err;
}
@@ -1694,8 +1691,8 @@ static const char *filesection(cmd_parms *cmd, void *mconfig, const char *arg)
}
/* initialize our config and fetch it */
- conf = (core_dir_config *)ap_set_config_vectors(cmd, new_file_conf,
- &core_module);
+ conf = ap_set_config_vectors(cmd->server, new_file_conf, cmd->path,
+ &core_module, cmd->pool);
errmsg = ap_walk_config(cmd->directive->first_child, cmd, new_file_conf);
if (errmsg != NULL)