diff options
author | Yann Ylavic <ylavic@apache.org> | 2018-06-12 14:48:42 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2018-06-12 14:48:42 +0200 |
commit | a3a4a2c4c248ce85704714fe3b61678602edf7b7 (patch) | |
tree | 6314b4317191c1dd997eb205b1bda237b12fb823 /server | |
parent | Follow up to r1833368: apr_crypto_prng_after_fork() now used a PID. (diff) | |
download | apache2-a3a4a2c4c248ce85704714fe3b61678602edf7b7.tar.xz apache2-a3a4a2c4c248ce85704714fe3b61678602edf7b7.zip |
Follow up to r1833368: fix "mixed declarations and code" warning (buildbot).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1833400 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/core.c b/server/core.c index a679f9d00d..d545921b33 100644 --- a/server/core.c +++ b/server/core.c @@ -5464,11 +5464,13 @@ static void core_child_init(apr_pool_t *pchild, server_rec *s) apr_crypto_prng_after_fork(&proc); #else #if APR_HAS_THREADS - int threaded_mpm; - if (ap_mpm_query(AP_MPMQ_IS_THREADED, &threaded_mpm) == APR_SUCCESS - && threaded_mpm) { - apr_thread_mutex_create(&rng_mutex, APR_THREAD_MUTEX_DEFAULT, pchild); + int threaded_mpm; + if (ap_mpm_query(AP_MPMQ_IS_THREADED, &threaded_mpm) == APR_SUCCESS + && threaded_mpm) + { + apr_thread_mutex_create(&rng_mutex, APR_THREAD_MUTEX_DEFAULT, pchild); + } } #endif apr_random_after_fork(&proc); |