Show
Ignore:
Timestamp:
02/16/10 22:06:09 (5 months ago)
Author:
phk
Message:

Void* cast for mmap() and friends for portability (solaris).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/varnish-cache/lib/libvarnishapi/shmlog.c

    r4557 r4563  
    161161        } 
    162162 
    163         vsl_lh = mmap(NULL, slh.size + sizeof slh, 
     163        vsl_lh = (void *)mmap(NULL, slh.size + sizeof slh, 
    164164            PROT_READ, MAP_SHARED|MAP_HASSEMAPHORE, vsl_fd, 0); 
    165165        if (vsl_lh == MAP_FAILED) { 
     
    591591        if (vsl_lh == NULL) 
    592592                return; 
    593         assert(0 == munmap(vsl_lh, vsl_lh->size + sizeof *vsl_lh)); 
     593        assert(0 == munmap((void*)vsl_lh, vsl_lh->size + sizeof *vsl_lh)); 
    594594        vsl_lh = NULL; 
    595595        assert(vsl_fd >= 0);