summaryrefslogtreecommitdiffstats
path: root/modules/database
diff options
context:
space:
mode:
authorPaul Querna <pquerna@apache.org>2008-10-29 09:10:21 +0100
committerPaul Querna <pquerna@apache.org>2008-10-29 09:10:21 +0100
commit0cfc4a278e598e4724f6f8d615ef462f7f0689e8 (patch)
tree91138fbca12ecffa717faa95a2423a7b56e85f97 /modules/database
parent* server/core.c: Fix implicit declaration of function 'unixd_set_rlimit' by (diff)
downloadapache2-0cfc4a278e598e4724f6f8d615ef462f7f0689e8.tar.xz
apache2-0cfc4a278e598e4724f6f8d615ef462f7f0689e8.zip
* modules/database/mod_dbd.c
(dbd_child_init): New function, wrapper around dbd_setup_init. (dbd_hooks): Call dbd_child_init instead of casting dbd_setup_init. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@708820 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/database')
-rw-r--r--modules/database/mod_dbd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/database/mod_dbd.c b/modules/database/mod_dbd.c
index bc31758cd4..f1fd998b18 100644
--- a/modules/database/mod_dbd.c
+++ b/modules/database/mod_dbd.c
@@ -647,6 +647,15 @@ static apr_status_t dbd_setup_init(apr_pool_t *pool, server_rec *s)
return rv;
}
+static void dbd_child_init(apr_pool_t *p, server_rec *s)
+{
+ apr_status_t rv = dbd_setup_init(p, s);
+ if (rv) {
+ ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,
+ "DBD: child init failed!");
+ }
+}
+
#if APR_HAS_THREADS
static apr_status_t dbd_setup_lock(server_rec *s, dbd_group_t *group)
{
@@ -904,7 +913,7 @@ static void dbd_hooks(apr_pool_t *pool)
{
ap_hook_pre_config(dbd_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_post_config(dbd_post_config, NULL, NULL, APR_HOOK_MIDDLE);
- ap_hook_child_init((void*)dbd_setup_init, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_child_init(dbd_child_init, NULL, NULL, APR_HOOK_MIDDLE);
APR_REGISTER_OPTIONAL_FN(ap_dbd_prepare);
APR_REGISTER_OPTIONAL_FN(ap_dbd_open);