Changeset 179 for branches/1.0


Ignore:
Timestamp:
2006-09-18T08:05:46+02:00 (8 years ago)
Author:
moo
Message:

fix assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/mmap.c

    r83 r179  
    8181{ 
    8282    if (shm->diff) { 
    83         assert(xc_shm_is_readonly(p)); 
     83        assert(xc_shm_is_readonly(shm, p)); 
    8484        p = PTR_SUB(p, shm->diff); 
    8585    } 
    86     assert(xc_shm_is_readwrite(p)); 
     86    assert(xc_shm_is_readwrite(shm, p)); 
    8787    return p; 
    8888} 
     
    9090void *xc_shm_to_readonly(xc_shm_t *shm, void *p) /* {{{ */ 
    9191{ 
    92     assert(xc_shm_is_readwrite(p)); 
     92    assert(xc_shm_is_readwrite(shm, p)); 
    9393    if (shm->diff) { 
    9494        p = PTR_ADD(p, shm->diff); 
    95         assert(xc_shm_is_readonly(p)); 
     95        assert(xc_shm_is_readonly(shm, p)); 
    9696    } 
    9797    return p; 
Note: See TracChangeset for help on using the changeset viewer.