summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authordreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-04-29 21:37:17 +0000
committerdreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-04-29 21:37:17 +0000
commit2ea1c8a20dcd69bc250484f80806a90bfeb1c1d7 (patch)
tree64044c417bedc514515dbef3f3229d081b04b634 /dso
parentdfe3bdcc529451b1ba7f87881c0c844462f6378b (diff)
downloadlibapr-2ea1c8a20dcd69bc250484f80806a90bfeb1c1d7.tar.gz
We have pools not contexts...
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r--dso/unix/dso.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c
index a23b5223e..ef9fc7773 100644
--- a/dso/unix/dso.c
+++ b/dso/unix/dso.c
@@ -75,7 +75,7 @@ APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **aprdso,
{
*aprdso = apr_pcalloc(pool, sizeof **aprdso);
(*aprdso)->handle = osdso;
- (*aprdso)->cont = pool;
+ (*aprdso)->pool = pool;
return APR_SUCCESS;
}
@@ -107,7 +107,7 @@ static apr_status_t dso_cleanup(void *thedso)
}
APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle,
- const char *path, apr_pool_t *ctx)
+ const char *path, apr_pool_t *pool)
{
#if defined(DSO_USE_SHL)
shl_t os_handle = shl_load(path, BIND_IMMEDIATE|BIND_VERBOSE|BIND_NOSTART, 0L);
@@ -139,7 +139,7 @@ APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle,
#endif
#endif /* DSO_USE_x */
- *res_handle = apr_pcalloc(ctx, sizeof(**res_handle));
+ *res_handle = apr_pcalloc(pool, sizeof(**res_handle));
if(os_handle == NULL) {
#if defined(DSO_USE_SHL)
@@ -155,17 +155,17 @@ APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle,
}
(*res_handle)->handle = (void*)os_handle;
- (*res_handle)->cont = ctx;
+ (*res_handle)->pool = pool;
(*res_handle)->errormsg = NULL;
- apr_pool_cleanup_register(ctx, *res_handle, dso_cleanup, apr_pool_cleanup_null);
+ apr_pool_cleanup_register(pool, *res_handle, dso_cleanup, apr_pool_cleanup_null);
return APR_SUCCESS;
}
APR_DECLARE(apr_status_t) apr_dso_unload(apr_dso_handle_t *handle)
{
- return apr_pool_cleanup_run(handle->cont, handle, dso_cleanup);
+ return apr_pool_cleanup_run(handle->pool, handle, dso_cleanup);
}
APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym,
@@ -231,7 +231,8 @@ APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym,
#endif /* DSO_USE_x */
}
-APR_DECLARE(const char *) apr_dso_error(apr_dso_handle_t *dso, char *buffer, apr_size_t buflen)
+APR_DECLARE(const char *) apr_dso_error(apr_dso_handle_t *dso, char *buffer,
+ apr_size_t buflen)
{
if (dso->errormsg) {
apr_cpystrn(buffer, dso->errormsg, buflen);