summaryrefslogtreecommitdiff
path: root/poll.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2016-05-15 14:23:06 +0000
committerDmitry V. Levin <ldv@altlinux.org>2016-05-15 14:23:06 +0000
commit6274ecc75223ea05abe838b3936b0616210f3a23 (patch)
treebf3f9b880ed0ed2b11a3bde3e4695b8fdc09329e /poll.c
parentc0db59b97bfa6820bbb5706832ab63d04a8c2659 (diff)
downloadstrace-6274ecc75223ea05abe838b3936b0616210f3a23.tar.gz
Prepare for transition from sprintflags64 to sprintflags
* fcntl.c (print_fcntl): Cast 3rd argument of sprintflags to unsigned long. * membarrier.c (SYS_FUNC(membarrier)): Likewise. * prctl.c (SYS_FUNC(prctl)): Likewise. * poll.c (decode_poll_exiting): Cast 3rd argument of sprintflags to unsigned short.
Diffstat (limited to 'poll.c')
-rw-r--r--poll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/poll.c b/poll.c
index afe0493ac..f116cef05 100644
--- a/poll.c
+++ b/poll.c
@@ -112,7 +112,8 @@ decode_poll_exiting(struct tcb *tcp, const long pts)
char fdstr[sizeof(fmt) + sizeof(int) * 3];
sprintf(fdstr, fmt, fds.fd);
- const char *flagstr = sprintflags("", pollflags, fds.revents);
+ const char *flagstr = sprintflags("", pollflags,
+ (unsigned short) fds.revents);
if (outptr + strlen(fdstr) + strlen(flagstr) + 1 >=
end_outstr - (2 + 2 * sizeof(long) + sizeof(", ], ..."))) {