From 3feb17c452c4e99b8c937132e401baefb8b57336 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 30 Jul 2013 13:16:52 +0000 Subject: [sanitizer] Tweak read syscall handler signature for consistency. llvm-svn: 187417 --- compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler-rt/lib') diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc index 5f4b24c0f59..3f728d34049 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc @@ -162,11 +162,11 @@ POST_SYSCALL(clock_getres)(long res, int clk_id, if (res == 0 && tp) POST_WRITE(tp, sizeof(*tp)); } -PRE_SYSCALL(read)(unsigned int fd, char *buf, uptr count) { +PRE_SYSCALL(read)(unsigned int fd, void *buf, uptr count) { if (buf) PRE_WRITE(buf, count); } -POST_SYSCALL(read)(long res, unsigned int fd, char *buf, uptr count) { +POST_SYSCALL(read)(long res, unsigned int fd, void *buf, uptr count) { if (res > 0 && buf) POST_WRITE(buf, res); } -- cgit v1.2.1