From: Dmitry V. Levin Date: Thu, 22 Dec 2016 17:59:19 +0000 (+0000) Subject: poll: change counter type from unsigned long to unsigned int X-Git-Tag: v4.16~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b89258dcdd74b198bef41d550ac487878e5710d2;p=strace poll: change counter type from unsigned long to unsigned int * poll.c (decode_poll_exiting): Change the type of printed and max_printed counters from unsigned long to unsigned int. --- diff --git a/poll.c b/poll.c index ae3fd1fd..6ac9bec9 100644 --- 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;