You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2008/12/21 23:54:07 UTC

svn commit: r728545 - /httpd/httpd/trunk/server/mpm/experimental/event/event.c

Author: pquerna
Date: Sun Dec 21 14:54:07 2008
New Revision: 728545

URL: http://svn.apache.org/viewvc?rev=728545&view=rev
Log:
Fix mixed declarations and code.

Modified:
    httpd/httpd/trunk/server/mpm/experimental/event/event.c

Modified: httpd/httpd/trunk/server/mpm/experimental/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/experimental/event/event.c?rev=728545&r1=728544&r2=728545&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/experimental/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/experimental/event/event.c Sun Dec 21 14:54:07 2008
@@ -893,6 +893,7 @@
                                                 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 @@
     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);