summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-09 22:16:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-09 22:16:27 +0000
commita5ec0c1c0b5d9e7c24a49867f3469d043ce4c7c4 (patch)
treee094561fa39a3ecbf441b881e25347c4346e7067 /usr.bin/top/top.c
parentc749bfbd0c11f5a81df5a6e35cf1d30a0f5db6c2 (diff)
delint
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r--usr.bin/top/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index e6c5f073770..8161724b272 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.32 2004/05/09 22:14:15 deraadt Exp $ */
+/* $OpenBSD: top.c,v 1.33 2004/05/09 22:16:26 deraadt Exp $ */
/*
* Top users/processes display for Unix
@@ -561,7 +561,7 @@ rundisplay(void)
* wait for either input or the end
* of the delay period
*/
- if (poll(pfd, 1, delay * 1000) > 0 &&
+ if (poll(pfd, 1, (int)(delay * 1000)) > 0 &&
!(pfd[0].revents & (POLLERR|POLLHUP|POLLNVAL))) {
char *errmsg;
ssize_t len;