httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1496427 - /httpd/httpd/trunk/server/skiplist.c
Date Tue, 25 Jun 2013 11:37:24 GMT
Author: trawick
Date: Tue Jun 25 11:37:24 2013
New Revision: 1496427

URL: http://svn.apache.org/r1496427
Log:
avoid "mixed declarations and code"

Modified:
    httpd/httpd/trunk/server/skiplist.c

Modified: httpd/httpd/trunk/server/skiplist.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/skiplist.c?rev=1496427&r1=1496426&r2=1496427&view=diff
==============================================================================
--- httpd/httpd/trunk/server/skiplist.c (original)
+++ httpd/httpd/trunk/server/skiplist.c Tue Jun 25 11:37:24 2013
@@ -87,8 +87,8 @@ AP_DECLARE(void *) ap_skiplist_alloc(ap_
         memlist_t *memlist = (memlist_t *)sl->memlist->elts;
         for (int i = 0; i < sl->memlist->nelts; i++) {
             if (memlist->size == size) {
-                found_size = 1;
                 chunk_t *chunk = (chunk_t *)memlist->list->elts;
+                found_size = 1;
                 for (int j = 0; j < memlist->list->nelts; j++) {
                     if (!chunk->inuse) {
                         chunk->inuse = 1;



Mime
View raw message