From: Dmitry V. Levin Date: Thu, 30 Jul 2015 16:54:31 +0000 (+0000) Subject: poll: print timeout argument as int X-Git-Tag: v4.11~310 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c18b002fe995d59d1b0e1c8e492ea1dc11884bff;p=strace poll: print timeout argument as int * poll.c (sys_poll): Explicitly cast timeout argument to int. --- diff --git a/poll.c b/poll.c index 49ed7364..f11ad9d4 100644 --- a/poll.c +++ b/poll.c @@ -169,11 +169,11 @@ SYS_FUNC(poll) int rc = decode_poll(tcp, 0); if (entering(tcp)) { #ifdef INFTIM - if (tcp->u_arg[2] == INFTIM) + if (INFTIM == (int) tcp->u_arg[2]) tprints("INFTIM"); else #endif - tprintf("%ld", tcp->u_arg[2]); + tprintf("%d", (int) tcp->u_arg[2]); } return rc; }