Changeset 4563 for trunk/varnish-cache/lib
- Timestamp:
- 02/16/10 22:06:09 (5 months ago)
- Files:
-
- 1 modified
-
trunk/varnish-cache/lib/libvarnishapi/shmlog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/varnish-cache/lib/libvarnishapi/shmlog.c
r4557 r4563 161 161 } 162 162 163 vsl_lh = mmap(NULL, slh.size + sizeof slh,163 vsl_lh = (void *)mmap(NULL, slh.size + sizeof slh, 164 164 PROT_READ, MAP_SHARED|MAP_HASSEMAPHORE, vsl_fd, 0); 165 165 if (vsl_lh == MAP_FAILED) { … … 591 591 if (vsl_lh == NULL) 592 592 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)); 594 594 vsl_lh = NULL; 595 595 assert(vsl_fd >= 0);
