From ec6f8c4fe162500645109eb24856051c97bfb2fe Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 18 Mar 2019 19:45:34 +0100 Subject: Remove the extra argument from cc4group_mmap and cc4group_munmap as its actually not needed --- examples/c4cat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/c4cat.c') diff --git a/examples/c4cat.c b/examples/c4cat.c index 3da506e..ee0ed9b 100644 --- a/examples/c4cat.c +++ b/examples/c4cat.c @@ -18,8 +18,7 @@ bool catNormalFile(const char* const path, const off_t size) return false; } - void* extra; - void* mappedFile = cc4group_mmap(NULL, size, PROT_READ, MAP_PRIVATE, file, 0, &extra); + void* mappedFile = cc4group_mmap(NULL, size, PROT_READ, MAP_PRIVATE, file, 0); if(close(file) == -1) { @@ -37,7 +36,7 @@ bool catNormalFile(const char* const path, const off_t size) fprintf(stderr, "ERROR: Writing file contents of \"%s\" to stdout: %s\n", path, strerror(errno)); } - if(cc4group_munmap(mappedFile, size, extra) == -1) + if(cc4group_munmap(mappedFile, size) == -1) { fprintf(stderr, "ERROR: Unmapping \"%s\": %s\n", path, strerror(errno)); } -- cgit v1.2.3-54-g00ecf