diff options
author | 2001-08-15 15:47:56 +0000 | |
---|---|---|
committer | 2001-08-15 15:47:56 +0000 | |
commit | d8dc433493874696f92c5f3543ef8c892bdf5520 (patch) | |
tree | 56d707222f21efeff75d9f62bc7763c33ade9538 /lib/libc_r | |
parent | For unsupported sched policies, return ENOTSUP, not EINVAL; from FreeBSD. (diff) | |
download | wireguard-openbsd-d8dc433493874696f92c5f3543ef8c892bdf5520.tar.xz wireguard-openbsd-d8dc433493874696f92c5f3543ef8c892bdf5520.zip |
Use INFTIM.
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_poll.c b/lib/libc_r/uthread/uthread_poll.c index b5b4a84c9c6..022b46f308b 100644 --- a/lib/libc_r/uthread/uthread_poll.c +++ b/lib/libc_r/uthread/uthread_poll.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_poll.c,v 1.4 2000/01/06 08:28:53 d Exp $ */ +/* $OpenBSD: uthread_poll.c,v 1.5 2001/08/15 15:47:56 fgsch Exp $ */ /* * Copyright (c) 1999 Daniel Eischen <eischen@vigrid.com> * All rights reserved. @@ -56,7 +56,7 @@ poll(struct pollfd fds[], int nfds, int timeout) numfds = _thread_dtablesize; } /* Check if a timeout was specified: */ - if (timeout == -1) { + if (timeout == INFTIM) { /* Wait for ever: */ _thread_kern_set_timeout(NULL); } else if (timeout > 0) { |