summaryrefslogtreecommitdiffstats
path: root/commands/go.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/go.c')
-rw-r--r--commands/go.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/go.c b/commands/go.c
index fb319b320c..ecc2ceb6e4 100644
--- a/commands/go.c
+++ b/commands/go.c
@@ -45,7 +45,7 @@ static int do_go(int argc, char *argv[])
}
addr = memmap(fd, PROT_READ);
- if (addr == (void *)-1) {
+ if (addr == MAP_FAILED) {
perror("memmap");
goto out;
}