Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Fix compilation: don't convert NULL to a pointer-incompatible type.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200536 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ramosian-glider committed Jan 31, 2014
1 parent a3d17f7 commit d2bd15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sanitizer_common/sanitizer_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ int internal_sigaction_norestorer(int signum, const void *act, void *oldact) {
}

uptr result = internal_syscall(__NR_rt_sigaction, (uptr)signum,
(uptr)(u_act ? &k_act : (uptr)NULL),
(uptr)(u_oldact ? &k_oldact : (uptr)NULL),
(uptr)(u_act ? &k_act : NULL),
(uptr)(u_oldact ? &k_oldact : NULL),
(uptr)sizeof(__sanitizer_kernel_sigset_t));

if ((result == 0) && u_oldact) {
Expand Down

0 comments on commit d2bd15c

Please sign in to comment.