X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f241326688a1194c7487ac998177f9f7aa5ac406..d123e1aa74eccae607076c5bbe6a688140f52b15:/test-mmap.c diff --git a/test-mmap.c b/test-mmap.c index 87596e3f..c322a34d 100644 --- a/test-mmap.c +++ b/test-mmap.c @@ -1,9 +1,9 @@ +#include #include +#include 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)); }