diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 14:08:20 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 14:08:20 +0000 |
commit | 11194e0e8168c7697b804886e317bb3591408844 (patch) | |
tree | 022165c1844ec881e3a6641f9721704b639555c8 /distrib/crunch | |
parent | babae963aea4df5c05eaf82785c11b91fdca88da (diff) |
-1 -> MAP_FAILED
Diffstat (limited to 'distrib/crunch')
-rw-r--r-- | distrib/crunch/crunchide/crunchide.c | 4 |
1 files 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; |