=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- src/usr.bin/top/top.c 2004/05/09 22:14:15 1.32 +++ src/usr.bin/top/top.c 2004/05/09 22:16:26 1.33 @@ -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 @@ * 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;