mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-04 21:04:57 +00:00
xmlwf/unixfilemap.c: Address clang-tidy warning google-readability-casting
This commit is contained in:
parent
0a27875087
commit
d620de0f50
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ filemap(const tchar *name,
|
||||||
close(fd);
|
close(fd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE,
|
p = mmap((void *)0, nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t)0);
|
||||||
fd, (off_t)0);
|
|
||||||
if (p == (void *)-1) {
|
if (p == (void *)-1) {
|
||||||
tperror(name);
|
tperror(name);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue