diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:30:15 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:30:15 +0000 |
commit | bc779d87e0b1eb1792440d7f6f530968da5b046d (patch) | |
tree | b679193c3e72c6080fc217471a324169ee57c414 /lib/libc/db | |
parent | 1bb888b82a176a5af07e6ac28d555b1e47433fea (diff) |
-1 -> MAP_FAILED
Diffstat (limited to 'lib/libc/db')
-rw-r--r-- | lib/libc/db/recno/rec_open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/recno/rec_open.c b/lib/libc/db/recno/rec_open.c index 500e4b41003..af3a0d81dc7 100644 --- a/lib/libc/db/recno/rec_open.c +++ b/lib/libc/db/recno/rec_open.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rec_open.c,v 1.5 1999/02/15 05:11:25 millert Exp $ */ +/* $OpenBSD: rec_open.c,v 1.6 2001/05/11 15:30:13 art Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)rec_open.c 8.10 (Berkeley) 9/1/94"; #else -static char rcsid[] = "$OpenBSD: rec_open.c,v 1.5 1999/02/15 05:11:25 millert Exp $"; +static char rcsid[] = "$OpenBSD: rec_open.c,v 1.6 2001/05/11 15:30:13 art Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -175,7 +175,7 @@ slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) t->bt_msize = sb.st_size; if ((t->bt_smap = mmap(NULL, t->bt_msize, PROT_READ, MAP_PRIVATE, rfd, - (off_t)0)) == (caddr_t)-1) + (off_t)0)) == MAP_FAILED) goto slow; t->bt_cmap = t->bt_smap; t->bt_emap = t->bt_smap + sb.st_size; |