]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-mmap.c
delete some TODO entries that were already fixed
[mandoc.git] / test-mmap.c
index db8fd8732e4df81fdb71fe9dce334a00d2839f2d..c322a34d1fad72d883d17af8e04264d0f9acfa7e 100644 (file)
@@ -1,10 +1,9 @@
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/mman.h>
+#include <stddef.h>
 
 int
 
 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));
 }
 }