diff options
author | 2002-01-03 15:07:05 +0000 | |
---|---|---|
committer | 2002-01-03 15:07:05 +0000 | |
commit | 5b0e2f8a5573677a39cff7dfe8015b1a63ec353f (patch) | |
tree | fc7a176080911910f4bd02577c08fa9217526495 | |
parent | add mmap2 (diff) | |
download | wireguard-openbsd-5b0e2f8a5573677a39cff7dfe8015b1a63ec353f.tar.xz wireguard-openbsd-5b0e2f8a5573677a39cff7dfe8015b1a63ec353f.zip |
Fix two obvious bugs that show up when trying this on sparc64, sigh.
-rw-r--r-- | regress/sys/kern/mmap2/mmaptest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/sys/kern/mmap2/mmaptest.c b/regress/sys/kern/mmap2/mmaptest.c index 408d353d47c..38301840c2f 100644 --- a/regress/sys/kern/mmap2/mmaptest.c +++ b/regress/sys/kern/mmap2/mmaptest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmaptest.c,v 1.1 2002/01/03 15:03:42 art Exp $ */ +/* $OpenBSD: mmaptest.c,v 1.2 2002/01/03 15:07:05 art Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -31,6 +31,7 @@ #include <stdlib.h> #include <unistd.h> #include <err.h> +#include <string.h> #include <sys/types.h> #include <sys/mman.h> @@ -87,5 +88,7 @@ main() err(1, "munmap"); close(fd); + + return 0; } |