summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-11 16:09:01 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-11 16:09:01 +0000
commit2095b8b218b6e9bb6593203278e557223f6182f1 (patch)
tree97cbebc100389ddb6170c8a18741b66759a76ba4
parent5873167bed6dc905daa392461198d369afb038d1 (diff)
-1 -> MAP_FAILED
-rw-r--r--usr.sbin/rdconfig/rdconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rdconfig/rdconfig.c b/usr.sbin/rdconfig/rdconfig.c
index 158c092d721..f1a64993fcf 100644
--- a/usr.sbin/rdconfig/rdconfig.c
+++ b/usr.sbin/rdconfig/rdconfig.c
@@ -74,7 +74,7 @@ main(argc, argv)
PROT_READ | PROT_WRITE,
MAP_ANON | MAP_PRIVATE,
-1, 0);
- if (rd.rd_addr == (caddr_t)-1) {
+ if (rd.rd_addr == MAP_FAILED) {
perror("mmap");
exit(1);
}