Changeset 872


Ignore:
Timestamp:
2012-03-31T14:38:21+02:00 (3 years ago)
Author:
moo
Message:

fix warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager.c

    r767 r872  
    343343 
    344344/* helper func to store hits into coverages */ 
    345 static coverager_t xc_coverager_get(char *filename TSRMLS_DC) /* {{{ */ 
     345static coverager_t xc_coverager_get(const char *filename TSRMLS_DC) /* {{{ */ 
    346346{ 
    347347    int len = strlen(filename) + 1; 
    348348    coverager_t cov, *pcov; 
    349349 
    350     if (zend_hash_find(XG(coverages), filename, len, (void **) &pcov) == SUCCESS) { 
     350    if (zend_u_hash_find(XG(coverages), IS_STRING, filename, len, (void **) &pcov) == SUCCESS) { 
    351351        TRACE("got coverage %s %p", filename, *pcov); 
    352352        return *pcov; 
     
    355355        cov = emalloc(sizeof(HashTable)); 
    356356        zend_hash_init(cov, 0, NULL, NULL, 0); 
    357         zend_hash_add(XG(coverages), filename, len, (void **) &cov, sizeof(cov), NULL); 
     357        zend_u_hash_add(XG(coverages), IS_STRING, filename, len, (void **) &cov, sizeof(cov), NULL); 
    358358        TRACE("new coverage %s %p", filename, cov); 
    359359        return cov; 
Note: See TracChangeset for help on using the changeset viewer.