diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-05-15 14:23:06 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-05-15 14:23:06 +0000 |
commit | 6274ecc75223ea05abe838b3936b0616210f3a23 (patch) | |
tree | bf3f9b880ed0ed2b11a3bde3e4695b8fdc09329e /poll.c | |
parent | c0db59b97bfa6820bbb5706832ab63d04a8c2659 (diff) | |
download | strace-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(", ], ..."))) { |