summaryrefslogtreecommitdiff
path: root/usr.sbin/kvm_mkdb
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-11 13:08:10 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-11 13:08:10 +0000
commitac995025a91733bf8efc4c4f0c9af2d532112e7f (patch)
treef211fd51b501d1a5947a7ce26b320e54f68a26d3 /usr.sbin/kvm_mkdb
parentbbea4017474a3e9624426e7dba893d199f4a6a19 (diff)
MAP_COPY -> MAP_SHARED (it's ok in this case (/dev/ksyms))
Diffstat (limited to 'usr.sbin/kvm_mkdb')
-rw-r--r--usr.sbin/kvm_mkdb/nlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c
index c9578d0f2b4..d084523d169 100644
--- a/usr.sbin/kvm_mkdb/nlist.c
+++ b/usr.sbin/kvm_mkdb/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.21 2001/02/03 03:03:07 art Exp $ */
+/* $OpenBSD: nlist.c,v 1.22 2001/05/11 13:08:09 art Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "from: @(#)nlist.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: nlist.c,v 1.21 2001/02/03 03:03:07 art Exp $";
+static char *rcsid = "$OpenBSD: nlist.c,v 1.22 2001/05/11 13:08:09 art Exp $";
#endif
#endif /* not lint */
@@ -532,7 +532,7 @@ __ecoff_knlist(fd, db)
}
mappedsize = st.st_size;
- mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_COPY|MAP_FILE, fd, 0);
+ mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_SHARED|MAP_FILE, fd, 0);
if (mappedfile == MAP_FAILED) {
fmterr = "unable to mmap";
BAD;