diff options
author | 2014-06-24 19:05:42 +0000 | |
---|---|---|
committer | 2014-06-24 19:05:42 +0000 | |
commit | 0e0ac80f25a6b0f38bd90e3b4ba4306e9c7e36c1 (patch) | |
tree | d995906c01a0831653079354f55448e1bb3a62b7 | |
parent | sync (diff) | |
download | wireguard-openbsd-0e0ac80f25a6b0f38bd90e3b4ba4306e9c7e36c1.tar.xz wireguard-openbsd-0e0ac80f25a6b0f38bd90e3b4ba4306e9c7e36c1.zip |
POSIX doesn't specify MAP_FILE and it's a noop anyway, so remove it to
make test portable to other OSes.
-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)); |