Changeset c648b3d in git


Ignore:
Timestamp:
2012-03-31T12:38:21Z (8 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
287c5e9
Parents:
d619e39
Message:

fix warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@872 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coverager.c

    rfcf2749 rc648b3d  
    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.