diff options
Diffstat (limited to 'src/mystdlib.c')
-rw-r--r-- | src/mystdlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mystdlib.c b/src/mystdlib.c index 2deda22..9d73293 100644 --- a/src/mystdlib.c +++ b/src/mystdlib.c | |||
@@ -20,7 +20,7 @@ MAP map_file( char *filename, int readonly ) | |||
20 | { | 20 | { |
21 | fstat( map->fh, &fstatus ); | 21 | fstat( map->fh, &fstatus ); |
22 | if( ( map->addr = mmap( NULL, map->size = (size_t)fstatus.st_size, | 22 | if( ( map->addr = mmap( NULL, map->size = (size_t)fstatus.st_size, |
23 | PROT_READ | ( readonly ? 0 : PROT_WRITE), MAP_NOCORE | (readonly ? 0 : MAP_SHARED), map->fh, 0) ) == MAP_FAILED ) | 23 | PROT_READ | ( readonly ? 0 : PROT_WRITE), (readonly ? 0 : MAP_SHARED), map->fh, 0) ) == MAP_FAILED ) |
24 | { | 24 | { |
25 | fprintf( stderr, "Mapping file '%s' failed\n", filename ); | 25 | fprintf( stderr, "Mapping file '%s' failed\n", filename ); |
26 | close( map->fh ); free( map ); map = NULL; | 26 | close( map->fh ); free( map ); map = NULL; |