X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f1dd272735279442dc54ebddfd0371d3f7ca67b9..d123e1aa74eccae607076c5bbe6a688140f52b15:/test-mmap.c?ds=inline diff --git a/test-mmap.c b/test-mmap.c index db8fd873..c322a34d 100644 --- a/test-mmap.c +++ b/test-mmap.c @@ -1,10 +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)); }