diff options
Diffstat (limited to 'common/ratp/md.c')
-rw-r--r-- | common/ratp/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ratp/md.c b/common/ratp/md.c index 0235352030..a25cbf1127 100644 --- a/common/ratp/md.c +++ b/common/ratp/md.c @@ -75,7 +75,7 @@ static int do_ratp_mem_md(const char *filename, return -errno; map = memmap(fd, PROT_READ); - if (map != (void *)-1) { + if (map != MAP_FAILED) { memcpy(output, (uint8_t *)(map + start), size); goto out; } |