Changeset 20 for trunk/xcache.c


Ignore:
Timestamp:
2006-05-25T04:38:27+02:00 (9 years ago)
Author:
moo
Message:

get* proto changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r19 r20  
    830830    typedef struct { 
    831831        const char *prefix; 
    832         int (*getsize)(); 
     832        zend_uchar (*getsize)(); 
    833833        const char *(*get)(zend_uchar i); 
    834834    } xc_meminfo_t; 
     
    841841    }; 
    842842    xc_meminfo_t* p; 
    843     int i; 
     843    zend_uchar i, count; 
    844844    char const_name[96]; 
    845845    int const_name_len; 
     
    847847 
    848848    for (p = nameinfos; p->getsize; p ++) { 
    849         for (i = p->getsize() - 1; i >= 0; i --) { 
     849        count = p->getsize(); 
     850        for (i = 0; i < count; i ++) { 
    850851            const char *name = p->get(i); 
    851852            if (!name) continue; 
Note: See TracChangeset for help on using the changeset viewer.