diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-24 19:05:43 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-24 19:05:43 +0000 |
commit | 03d2c7f8ad8421d3c714ab1fd4df36f42a2584c4 (patch) | |
tree | 928f072daca9127b66f4c75f6abb0ce5451beb13 /regress | |
parent | cf5fcf8badcc2277aae37264bf40fccb7559103e (diff) |
POSIX doesn't specify MAP_FILE and it's a noop anyway, so remove it to
make test portable to other OSes.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/siginfo-fault/siginfo-fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/kern/siginfo-fault/siginfo-fault.c b/regress/sys/kern/siginfo-fault/siginfo-fault.c index 9f71a1dfd1f..ed8ef0a9104 100644 --- a/regress/sys/kern/siginfo-fault/siginfo-fault.c +++ b/regress/sys/kern/siginfo-fault/siginfo-fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siginfo-fault.c,v 1.1 2014/06/23 21:10:03 matthew Exp $ */ +/* $OpenBSD: siginfo-fault.c,v 1.2 2014/06/24 19:05:42 matthew Exp $ */ /* * Copyright (c) 2014 Google Inc. * @@ -110,7 +110,7 @@ main() CHECK_GE(fd, 0); CHECK_EQ(0, unlink(filename)); CHECK_EQ(0, ftruncate(fd, 0)); /* just in case */ - p = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED, fd, 0); + p = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); CHECK_NE(MAP_FAILED, p); CHECK_EQ(0, close(fd)); |