From: Paul Querna Date: Sun, 21 Dec 2008 22:54:07 +0000 (+0000) Subject: Fix mixed declarations and code. X-Git-Tag: 2.3.1~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b7c73e48a1352841bca74723d6a51d2afd2bffe;p=thirdparty%2Fapache%2Fhttpd.git Fix mixed declarations and code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728545 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/experimental/event/event.c b/server/mpm/experimental/event/event.c index 00e95ef48fa..a3a3c47c254 100644 --- a/server/mpm/experimental/event/event.c +++ b/server/mpm/experimental/event/event.c @@ -893,6 +893,7 @@ AP_DECLARE(void) ap_mpm_register_timed_callback(apr_time_t t, ap_mpm_callback_fn_t *cbfn, void *baton) { + int inserted = 0; timer_event_t *ep; timer_event_t *te; /* oh yeah, and make locking smarter/fine grained. */ @@ -914,7 +915,6 @@ AP_DECLARE(void) ap_mpm_register_timed_callback(apr_time_t t, te->when = t + apr_time_now(); /* Okay, insert sorted by when.. */ - int inserted = 0; for (ep = APR_RING_FIRST(&timer_ring); ep != APR_RING_SENTINEL(&timer_ring, timer_event_t, link);