summaryrefslogtreecommitdiffstats
path: root/commands/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/md.c')
-rw-r--r--commands/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/md.c b/commands/md.c
index 3e83c72..a495fc8 100644
--- a/commands/md.c
+++ b/commands/md.c
@@ -68,7 +68,7 @@ static int do_mem_md(int argc, char *argv[])
return 1;
map = memmap(fd, PROT_READ);
- if (map != (void *)-1) {
+ if (map != MAP_FAILED) {
ret = memory_display(map + start, start, size,
mode >> O_RWSIZE_SHIFT, swab);
goto out;