Changeset 2134

Show
Ignore:
Timestamp:
03/21/2008 03:17:06 PM (5 months ago)
Author:
stbuehler
Message:

fcgi-stat-accel: Fix unused var / indentation

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r2133 r2134  
    2525  * fixed out of range access in fd array (#1562, #372, #1603) (CVE-2008-0983) 
    2626  * fix auth-ldap configuration in tests 
     27  * fcgi-stat-accel: Fix unused var / indentation 
    2728 
    2829- 1.5.0-r19.. - 
  • trunk/src/fcgi-stat-accel.c

    r1653 r2134  
    4141        FCGX_FPrintF(stream, "X-LIGHTTPD-send-file: %s\r\n\r\n", filename);  
    4242 
     43#define UNUSED(x) ( (void)(x) ) 
    4344 
    4445static void *doit(void *a){ 
     
    4647        int rc; 
    4748        char *filename; 
     49        UNUSED(a); 
    4850 
    4951        FCGX_InitRequest(&request, 0, /* FCGI_FAIL_ACCEPT_ON_INTR */ 0); 
    5052 
    5153        while(1){ 
    52                 int fd; 
     54        int fd; 
    5355                //Some platforms require accept() serialization, some don't. The documentation claims it to be thread safe 
    5456//              static pthread_mutex_t accept_mutex = PTHREAD_MUTEX_INITIALIZER; 
     
    103105        } 
    104106 
    105         /* block the current thread by executing one */ 
     107    /* block the current thread by executing one */ 
    106108        doit(NULL); 
    107          
    108         for (i = 0; i < thread_count; i++) { 
     109 
     110    for (i = 0; i < thread_count; i++) { 
    109111                pthread_join(id[i], NULL); 
    110112        }