From d0504a5c475a1e8415c5122a74ec5df3d5c306e4 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 11 May 2001 14:06:16 +0000 Subject: -1 -> MAP_FAILED --- distrib/common/rdsetroot.c | 4 ++-- 1 file 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); -- cgit v1.2.3