]> granicus.if.org Git - strace/commitdiff
poll: change counter type from unsigned long to unsigned int
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 17:59:19 +0000 (17:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 23 Dec 2016 19:26:58 +0000 (19:26 +0000)
* poll.c (decode_poll_exiting): Change the type of printed and
max_printed counters from unsigned long to unsigned int.

poll.c

diff --git a/poll.c b/poll.c
index ae3fd1fde1209a32481cff21821915e93d0322d9..6ac9bec94bc98dc7a4df5fbf95889672ea7b8a01 100644 (file)
--- a/poll.c
+++ b/poll.c
@@ -68,9 +68,9 @@ decode_poll_exiting(struct tcb *tcp, const long pts)
        const kernel_ureg_t start = tcp->u_arg[0];
        const kernel_ureg_t end = start + size;
        kernel_ureg_t cur;
-       const unsigned long max_printed =
+       const unsigned int max_printed =
                abbrev(tcp) ? max_strlen : -1U;
-       unsigned long printed;
+       unsigned int printed;
 
        static char outstr[1024];
        char *outptr;