Changeset 56 for pjproject


Ignore:
Timestamp:
Nov 19, 2005 1:19:49 PM (19 years ago)
Author:
bennylp
Message:

Fixed compile error in scanner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/scanner.c

    r51 r56  
    4747    for (i=0; i<PJ_CIS_MAX_INDEX; ++i) { 
    4848        if ((cis_buf->use_mask & (1 << i)) == 0) { 
    49             cis->cis_index = i; 
     49            cis->cis_id = i; 
    5050            return PJ_SUCCESS; 
    5151        } 
    5252    } 
    5353 
    54     cis->cis_index = PJ_CIS_MAX_INDEX; 
     54    cis->cis_id = PJ_CIS_MAX_INDEX; 
    5555    return PJ_ETOOMANY; 
    5656} 
     
    6161    unsigned i; 
    6262 
    63     status = pj_cis_init(existing->cis_buf, new_cis); 
     63    /* Warning: typecasting here! */ 
     64    status = pj_cis_init((pj_cis_buf_t*)existing->cis_buf, new_cis); 
    6465    if (status != PJ_SUCCESS) 
    6566        return status; 
Note: See TracChangeset for help on using the changeset viewer.