Changeset 179


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

fix assertion

Files:
2 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; 
  • trunk/mmap.c

    r148 r179  
    8585{ 
    8686    if (shm->diff) { 
    87         assert(xc_mmap_is_readonly(p)); 
     87        assert(xc_mmap_is_readonly(shm, p)); 
    8888        p = PTR_SUB(p, shm->diff); 
    8989    } 
    90     assert(xc_mmap_is_readwrite(p)); 
     90    assert(xc_mmap_is_readwrite(shm, p)); 
    9191    return p; 
    9292} 
     
    9494static XC_SHM_TO_READONLY(xc_mmap_to_readonly) /* {{{ */ 
    9595{ 
    96     assert(xc_shm_is_readwrite(p)); 
     96    assert(xc_mmap_is_readwrite(shm, p)); 
    9797    if (shm->diff) { 
    9898        p = PTR_ADD(p, shm->diff); 
    99         assert(xc_mmap_is_readonly(p)); 
     99        assert(xc_mmap_is_readonly(shm, p)); 
    100100    } 
    101101    return p; 
Note: See TracChangeset for help on using the changeset viewer.