ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Darwin/lowmem.c
(Generate patch)

Comparing BasiliskII/src/Unix/Darwin/lowmem.c (file contents):
Revision 1.7 by asvitkine, 2011-12-27T19:50:38Z vs.
Revision 1.8 by asvitkine, 2011-12-27T20:50:27Z

# Line 166 | Line 166 | main(int argc, const char *argv[])
166           */
167          addr = mmap(NULL, file_size, PROT_READ | PROT_WRITE,
168              MAP_FILE | MAP_SHARED, fd, 0);
169 <        if (addr == NULL) {
169 >        if (addr == NULL || addr == MAP_FAILED) {
170                  (void)fprintf(stderr, "%s: could not mmap %s: %s\n",
171                                  progname, filename, strerror(errno));
172                  exit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines