summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--distrib/common/rdsetroot.c4
-rw-r--r--distrib/crunch/crunchide/crunchide.c4
2 files changed, 4 insertions, 4 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);
diff --git a/distrib/crunch/crunchide/crunchide.c b/distrib/crunch/crunchide/crunchide.c
index 893fb09fc6e..ab2556908db 100644
--- a/distrib/crunch/crunchide/crunchide.c
+++ b/distrib/crunch/crunchide/crunchide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchide.c,v 1.12 2000/03/01 22:10:03 todd Exp $ */
+/* $OpenBSD: crunchide.c,v 1.13 2001/05/11 14:08:19 art Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -258,7 +258,7 @@ void hide_syms(char *filename)
}
if((buf = mmap(NULL, infstat.st_size, PROT_READ|PROT_WRITE,
- MAP_FILE|MAP_SHARED, inf, 0)) == (char *)-1) {
+ MAP_FILE|MAP_SHARED, inf, 0)) == MAP_FAILED) {
fprintf(stderr, "%s: cannot map\n", filename);
close(inf);
return;