summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-08-12 17:53:17 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-08-12 17:53:17 +0000
commit2bb320b6f41d4c75ac49a77beec037d5bdf80639 (patch)
treea181f6e927fc5e6561411e8bb633417b63f56b9a
parent282601db2205cbf8729e14c901e71feaaab9b7a8 (diff)
Use INFTIM where possible.
-rw-r--r--gnu/usr.bin/bc/bcwrap/wrap-anything.c4
-rw-r--r--libexec/identd/identd.c4
-rw-r--r--usr.sbin/wsmoused/mouse_protocols.c4
-rw-r--r--usr.sbin/wsmoused/wsmoused.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/gnu/usr.bin/bc/bcwrap/wrap-anything.c b/gnu/usr.bin/bc/bcwrap/wrap-anything.c
index 04421f3046d..d0e742ae544 100644
--- a/gnu/usr.bin/bc/bcwrap/wrap-anything.c
+++ b/gnu/usr.bin/bc/bcwrap/wrap-anything.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wrap-anything.c,v 1.2 1999/07/28 17:16:05 deraadt Exp $ */
+/* $OpenBSD: wrap-anything.c,v 1.3 2001/08/12 17:53:16 fgsch Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -98,7 +98,7 @@ main(argc, argv)
if (waitpid(pid, &stat, WNOHANG) > 0)
exit(WEXITSTATUS(stat));
- switch (poll(pfd, 2, -1)) {
+ switch (poll(pfd, 2, INFTIM)) {
case -1:
case 0:
break;
diff --git a/libexec/identd/identd.c b/libexec/identd/identd.c
index befb10e31bb..9d0ecd8b965 100644
--- a/libexec/identd/identd.c
+++ b/libexec/identd/identd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identd.c,v 1.19 2001/08/08 07:02:42 deraadt Exp $ */
+/* $OpenBSD: identd.c,v 1.20 2001/08/12 17:53:16 fgsch Exp $ */
/*
* This program is in the public domain and may be used freely by anyone
@@ -374,7 +374,7 @@ main(argc, argv)
if (timeout)
nfds = poll(pfd, 1, timeout * 1000);
else
- nfds = poll(pfd, 1, -1);
+ nfds = poll(pfd, 1, INFTIM);
} while (nfds < 0 && errno == EINTR);
/*
diff --git a/usr.sbin/wsmoused/mouse_protocols.c b/usr.sbin/wsmoused/mouse_protocols.c
index 47e6d28edbe..7247b13e929 100644
--- a/usr.sbin/wsmoused/mouse_protocols.c
+++ b/usr.sbin/wsmoused/mouse_protocols.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mouse_protocols.c,v 1.1 2001/04/14 04:47:40 aaron Exp $ */
+/* $OpenBSD: mouse_protocols.c,v 1.2 2001/08/12 17:53:16 fgsch Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -769,7 +769,7 @@ mouse_init(void)
for (s = "E5E5"; *s; ++s) {
write(mouse.mfd, s, 1);
- if (poll(pfd, 1, -1) <= 0)
+ if (poll(pfd, 1, INFTIM) <= 0)
break;
read(mouse.mfd, &c, 1);
debug("%c", c);
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index 2d53df0176e..bbe4f6e3406 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.1 2001/04/14 04:47:41 aaron Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.2 2001/08/12 17:53:16 fgsch Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -443,7 +443,7 @@ wsmoused(void)
/* process mouse data */
for (;;) {
- if (poll(pfd, 1, -1) <= 0)
+ if (poll(pfd, 1, INFTIM) <= 0)
logwarn("failed to read from mouse");
if (IS_WSMOUSE_DEV(mouse.portname)) {
/* wsmouse supported mouse */