[Sanitizer] use proper casting in *stat functions on Mac
llvm-svn: 174318
This commit is contained in:
parent
a84c59c95a
commit
576e270287
|
@ -70,15 +70,15 @@ uptr internal_write(fd_t fd, const void *buf, uptr count) {
|
|||
}
|
||||
|
||||
int internal_stat(const char *path, void *buf) {
|
||||
return stat(path, buf);
|
||||
return stat(path, (struct stat *)buf);
|
||||
}
|
||||
|
||||
int internal_lstat(const char *path, void *buf) {
|
||||
return lstat(path, buf);
|
||||
return lstat(path, (struct stat *)buf);
|
||||
}
|
||||
|
||||
int internal_fstat(fd_t fd, void *buf) {
|
||||
return fstat(fd, buf);
|
||||
return fstat(fd, (struct stat *)buf);
|
||||
}
|
||||
|
||||
uptr internal_filesize(fd_t fd) {
|
||||
|
|
Loading…
Reference in New Issue