Commit ea3f9470 authored by Yann Ylavic's avatar Yann Ylavic
Browse files

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
parent 7d1b547a
Loading
Loading
Loading
Loading
+2 −0
Changes for server/core.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5464,12 +5464,14 @@ 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);
        }
    }
#endif
    apr_random_after_fork(&proc);
#endif /* USE_APR_CRYPTO_PRNG */