]> granicus.if.org Git - strace/commitdiff
poll: print timeout argument as int
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 30 Jul 2015 16:54:31 +0000 (16:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 30 Jul 2015 22:03:07 +0000 (22:03 +0000)
* poll.c (sys_poll): Explicitly cast timeout argument to int.

poll.c

diff --git a/poll.c b/poll.c
index 49ed7364d3a742ec4a8ea36893987109f3e3c5fa..f11ad9d42c7aed8af0b1b64f0fdb3b4d62bce77d 100644 (file)
--- 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;
 }