diff options
Diffstat (limited to 'libc/signal')
-rw-r--r-- | libc/signal/sigaction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index f430070e6..25c1f8a74 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -62,8 +62,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) /* NB: kernel (as of 2.6.25) will return EINVAL * if sizeof(kact.sa_mask) does not match kernel's sizeof(sigset_t) */ result = __syscall_rt_sigaction(sig, - act ? __ptrvalue (&kact) : NULL, - oact ? __ptrvalue (&koact) : NULL, + act ? &kact : NULL, + oact ? &koact : NULL, sizeof(kact.sa_mask)); if (oact && result >= 0) { @@ -98,8 +98,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) } result = __syscall_sigaction(sig, - act ? __ptrvalue (&kact) : NULL, - oact ? __ptrvalue (&koact) : NULL); + act ? &kact : NULL, + oact ? &koact : NULL); if (oact && result >= 0) { oact->sa_handler = koact.k_sa_handler; |