=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/strip/Attic/strip.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/strip/Attic/strip.c 2000/06/30 16:00:20 1.12 +++ src/usr.bin/strip/Attic/strip.c 2000/10/12 10:15:38 1.13 @@ -1,4 +1,4 @@ -/* $OpenBSD: strip.c,v 1.12 2000/06/30 16:00:20 millert Exp $ */ +/* $OpenBSD: strip.c,v 1.13 2000/10/12 10:15:38 art Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -41,7 +41,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ -static char rcsid[] = "$OpenBSD: strip.c,v 1.12 2000/06/30 16:00:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: strip.c,v 1.13 2000/10/12 10:15:38 art Exp $"; #endif /* not lint */ #include @@ -118,7 +118,7 @@ ERROR(EFTYPE); } if ((ep = (EXEC *)mmap(NULL, sb.st_size, PROT_READ|PROT_WRITE, - MAP_SHARED, fd, (off_t)0)) == (EXEC *)-1) { + MAP_SHARED, fd, (off_t)0)) == MAP_FAILED) { (void)close(fd); ERROR(errno); }