summaryrefslogtreecommitdiff
path: root/distrib/common/rdsetroot.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-11 14:06:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-11 14:06:16 +0000
commitd0504a5c475a1e8415c5122a74ec5df3d5c306e4 (patch)
tree37db8792c03fb669afaa95fb0e4a9574770b1b42 /distrib/common/rdsetroot.c
parent58b27a3916de8dd9edf2109a78f4fcc7e8cef3df (diff)
-1 -> MAP_FAILED
Diffstat (limited to 'distrib/common/rdsetroot.c')
-rw-r--r--distrib/common/rdsetroot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/common/rdsetroot.c b/distrib/common/rdsetroot.c
index b0e66677c72..cdaa018b55a 100644
--- a/distrib/common/rdsetroot.c
+++ b/distrib/common/rdsetroot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rdsetroot.c,v 1.4 1997/11/26 02:32:23 deraadt Exp $ */
+/* $OpenBSD: rdsetroot.c,v 1.5 2001/05/11 14:06:15 art Exp $ */
/* $NetBSD: rdsetroot.c,v 1.2 1995/10/13 16:38:39 gwr Exp $ */
/*
@@ -142,7 +142,7 @@ main(argc,argv)
PROT_READ | PROT_WRITE,
MAP_SHARED,
fd, data_off);
- if ((long)dataseg == -1) {
+ if (dataseg == MAP_FAILED) {
printf("%s: can not map data seg\n", file);
perror(file);
exit(1);