diff options
author | Ryan Bloom <rbb@apache.org> | 1999-08-31 07:35:52 +0200 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 1999-08-31 07:35:52 +0200 |
commit | c37f14ddf32319a7d84a9b573a54ccde8f37c5ff (patch) | |
tree | 1f1dd08b2e53226b3b3363beee02eeb57a8061ca /modules/mappers/mod_speling.c | |
parent | Forgot this hook... (diff) | |
download | apache2-c37f14ddf32319a7d84a9b573a54ccde8f37c5ff.tar.xz apache2-c37f14ddf32319a7d84a9b573a54ccde8f37c5ff.zip |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_speling.c')
-rw-r--r-- | modules/mappers/mod_speling.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c index eb0e76a5e1..f81c88f4b3 100644 --- a/modules/mappers/mod_speling.c +++ b/modules/mappers/mod_speling.c @@ -98,7 +98,7 @@ typedef struct { * bother to have such a function. */ -static void *mkconfig(pool *p) +static void *mkconfig(ap_context_t *p) { spconfig *cfg = ap_pcalloc(p, sizeof(spconfig)); @@ -110,7 +110,7 @@ static void *mkconfig(pool *p) * Respond to a callback to create configuration record for a server or * vhost environment. */ -static void *create_mconfig_for_server(pool *p, server_rec *s) +static void *create_mconfig_for_server(ap_context_t *p, server_rec *s) { return mkconfig(p); } @@ -118,7 +118,7 @@ static void *create_mconfig_for_server(pool *p, server_rec *s) /* * Respond to a callback to create a config record for a specific directory. */ -static void *create_mconfig_for_directory(pool *p, char *dir) +static void *create_mconfig_for_directory(ap_context_t *p, char *dir) { return mkconfig(p); } @@ -231,7 +231,7 @@ static int check_speling(request_rec *r) int filoc, dotloc, urlen, pglen; DIR *dirp; struct DIR_TYPE *dir_entry; - array_header *candidates = NULL; + ap_array_header_t *candidates = NULL; cfg = ap_get_module_config(r->per_dir_config, &speling_module); if (!cfg->enabled) { @@ -428,11 +428,11 @@ static int check_speling(request_rec *r) * returned. */ else { - pool *p; - table *notes; - pool *sub_pool; - array_header *t; - array_header *v; + ap_context_t *p; + ap_table_t *notes; + ap_context_t *sub_pool; + ap_array_header_t *t; + ap_array_header_t *v; if (r->main == NULL) { @@ -514,7 +514,7 @@ static int check_speling(request_rec *r) } - /* Pass our table to http_protocol.c (see mod_negotiation): */ + /* Pass our ap_table_t to http_protocol.c (see mod_negotiation): */ ap_table_setn(notes, "variant-list", ap_array_pstrcat(p, t, 0)); ap_table_mergen(r->subprocess_env, "VARIANTS", @@ -544,7 +544,7 @@ module MODULE_VAR_EXPORT speling_module = NULL, /* merge per-dir config */ create_mconfig_for_server, /* server config */ NULL, /* merge server config */ - speling_cmds, /* command table */ + speling_cmds, /* command ap_table_t */ NULL, /* handlers */ register_hooks /* register hooks */ }; |