summaryrefslogtreecommitdiff
path: root/distrib/alpha
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-11 14:04:31 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-11 14:04:31 +0000
commit58b27a3916de8dd9edf2109a78f4fcc7e8cef3df (patch)
treefe799045bc2d96da493d2b205a393fac6ddf8178 /distrib/alpha
parented42939d68ab74b6809b0e55b629bcc56dfd70e6 (diff)
MAP_FAILED, not -1
Diffstat (limited to 'distrib/alpha')
-rw-r--r--distrib/alpha/ecoffrdsetroot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/alpha/ecoffrdsetroot.c b/distrib/alpha/ecoffrdsetroot.c
index f5366574870..a8a4d04e6cb 100644
--- a/distrib/alpha/ecoffrdsetroot.c
+++ b/distrib/alpha/ecoffrdsetroot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecoffrdsetroot.c,v 1.2 1997/05/07 21:43:04 niklas Exp $ */
+/* $OpenBSD: ecoffrdsetroot.c,v 1.3 2001/05/11 14:04:30 art Exp $ */
/*
* Copyright (c) 1997 Todd C. Milller
@@ -153,7 +153,7 @@ main(argc,argv)
dataseg = mmap(NULL, data_len, PROT_READ | PROT_WRITE,
MAP_FILE | MAP_SHARED, fd, data_off);
- if ((long)dataseg == -1)
+ if (dataseg == MAP_FAILED)
err(1, "%s: can not map data seg", file);
dataseg += data_pgoff;