]> granicus.if.org Git - apache/commitdiff
Fix mixed declarations and code.
authorPaul Querna <pquerna@apache.org>
Sun, 21 Dec 2008 22:54:07 +0000 (22:54 +0000)
committerPaul Querna <pquerna@apache.org>
Sun, 21 Dec 2008 22:54:07 +0000 (22:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728545 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/experimental/event/event.c

index 00e95ef48fab89b2229004130db9a3cd5c1b81bc..a3a3c47c254ab650b1d9fe55578c454d19830cce 100644 (file)
@@ -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);