Changeset 179 for trunk/mmap.c


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

fix assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.