]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-mmap.c
Put mansearch.{h,c}, manpage.c, and compat_ohash.{h,c}
[mandoc.git] / test-mmap.c
index db8fd8732e4df81fdb71fe9dce334a00d2839f2d..7fb2f9737936bcfe4cce896bfd576dd338b911c8 100644 (file)
@@ -2,9 +2,7 @@
 #include <sys/mman.h>
 
 int
-main(int argc, char **argv)
+main(void)
 {
-
-       mmap(0, 0, PROT_READ, MAP_FILE|MAP_SHARED, -1, 0);
-       return 0;
+       return(MAP_FAILED != mmap(NULL, 1, PROT_READ, MAP_SHARED, -1, 0));
 }