debloat src/thread tree but putting lots of junk in one file
[oweals/musl.git] / src / linux / ppoll.c
index 8f4aab9b272a8c3740ebd32bdb233553cb55aa18..f0268894c038681a57dc49f9f0ba946ffdb63256 100644 (file)
@@ -4,6 +4,6 @@
 
 int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask)
 {
-       struct timespec tmp = *to;
-       return syscall_cp(SYS_ppoll, fds, n, &tmp, mask);
+       return syscall_cp(SYS_ppoll, fds, n,
+               to ? (struct timespec []){*to} : 0, mask, __SYSCALL_SSLEN);
 }