]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-mmap.c
After skipping an escape sequence with incomplete arguments,
[mandoc.git] / test-mmap.c
index 87596e3f88fc451bc8cf1abe656bdb450e9f859c..7fb2f9737936bcfe4cce896bfd576dd338b911c8 100644 (file)
@@ -1,9 +1,8 @@
+#include <sys/types.h>
 #include <sys/mman.h>
 
 int
 #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));
 }
 }