From 11194e0e8168c7697b804886e317bb3591408844 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 11 May 2001 14:08:20 +0000 Subject: -1 -> MAP_FAILED --- distrib/crunch/crunchide/crunchide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- cgit v1.2.3