[Sanitizer] use proper casting in *stat functions on Mac

llvm-svn: 174318
This commit is contained in:
Alexey Samsonov 2013-02-04 10:31:39 +00:00
parent a84c59c95a
commit 576e270287
1 changed files with 3 additions and 3 deletions

View File

@ -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) {