[compiler-rt] r174318 - [Sanitizer] use proper casting in *stat functions on Mac
Alexey Samsonov
samsonov at google.com
Mon Feb 4 02:31:39 PST 2013
Author: samsonov
Date: Mon Feb 4 04:31:39 2013
New Revision: 174318
URL: http://llvm.org/viewvc/llvm-project?rev=174318&view=rev
Log:
[Sanitizer] use proper casting in *stat functions on Mac
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=174318&r1=174317&r2=174318&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Mon Feb 4 04:31:39 2013
@@ -70,15 +70,15 @@ uptr internal_write(fd_t fd, const void
}
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) {
More information about the llvm-commits
mailing list