projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1cd23
)
fix ppoll with null timeout argument
author
Rich Felker
<dalias@aerifal.cx>
Mon, 10 Sep 2012 22:05:02 +0000
(18:05 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 10 Sep 2012 22:05:02 +0000
(18:05 -0400)
src/linux/ppoll.c
patch
|
blob
|
history
diff --git
a/src/linux/ppoll.c
b/src/linux/ppoll.c
index 8f4aab9b272a8c3740ebd32bdb233553cb55aa18..d49e836e4e84fcb3a2220fc62245e1a310c52c67 100644
(file)
--- a/
src/linux/ppoll.c
+++ b/
src/linux/ppoll.c
@@
-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);
}