From b89258dcdd74b198bef41d550ac487878e5710d2 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 22 Dec 2016 17:59:19 +0000 Subject: [PATCH] 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. --- poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;