diff options
author | 2015-08-27 07:38:38 +0000 | |
---|---|---|
committer | 2015-08-27 07:38:38 +0000 | |
commit | 4466229b773ce2aa826b11d54f3339ca2bce04d3 (patch) | |
tree | 581a2d7d2c589fa48246ae9672d1b65d24a9104c | |
parent | fix typos in comments and error messages (diff) | |
download | wireguard-openbsd-4466229b773ce2aa826b11d54f3339ca2bce04d3.tar.xz wireguard-openbsd-4466229b773ce2aa826b11d54f3339ca2bce04d3.zip |
backout previous for now, as it causes me portability problems
-rw-r--r-- | usr.bin/sndiod/file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/sndiod/file.c b/usr.bin/sndiod/file.c index 939cb5440a1..328d0fa9cec 100644 --- a/usr.bin/sndiod/file.c +++ b/usr.bin/sndiod/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.14 2015/08/11 16:49:50 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.15 2015/08/27 07:38:38 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -383,7 +383,8 @@ file_poll(void) /* * Sleep. Calculate the number off milliseconds poll(2) must * wait before the timo_update() needs to be called. If there're - * no timeouts scheduled, then call poll(2) with INFTIM timeout. + * no timeouts scheduled, then call poll(2) with infinite + * timeout (i.e -1). */ #ifdef DEBUG clock_gettime(CLOCK_MONOTONIC, &sleepts); @@ -395,7 +396,7 @@ file_poll(void) if (timo < TIMER_MSEC) timo = TIMER_MSEC; } else - timo = INFTIM; + timo = -1; res = poll(pfds, nfds, timo); if (res < 0) { if (errno != EINTR) |