xmlwf/unixfilemap.c: Address clang-tidy warning google-readability-casting

This commit is contained in:
Sebastian Pipping 2025-03-29 01:11:46 +01:00
parent 0a27875087
commit d620de0f50

View file

@ -93,8 +93,7 @@ filemap(const tchar *name,
close(fd);
return 1;
}
p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE,
fd, (off_t)0);
p = mmap((void *)0, nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t)0);
if (p == (void *)-1) {
tperror(name);
close(fd);