summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2017-02-14 17:51:14 +0000
committertb <tb@openbsd.org>2017-02-14 17:51:14 +0000
commitab4dbadae6c748a2284ab761c347709a8bf2ff5c (patch)
treeebcc980337a568d71e4febad46298711f8c49234 /lib/libc
parentadd standalone maildir MDA (work in progress) which will soon obsolete the (diff)
downloadwireguard-openbsd-ab4dbadae6c748a2284ab761c347709a8bf2ff5c.tar.xz
wireguard-openbsd-ab4dbadae6c748a2284ab761c347709a8bf2ff5c.zip
Missing opening brace. Spotted by Hiltjo Posthuma.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/poll.26
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2
index 1c622a450ab..099e8692d14 100644
--- a/lib/libc/sys/poll.2
+++ b/lib/libc/sys/poll.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: poll.2,v 1.34 2016/09/17 01:01:42 guenther Exp $
+.\" $OpenBSD: poll.2,v 1.35 2017/02/14 17:51:14 tb Exp $
.\"
.\" Copyright (c) 1994 Jason R. Thorpe
.\" All rights reserved.
@@ -28,7 +28,7 @@
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\"
-.Dd $Mdocdate: September 17 2016 $
+.Dd $Mdocdate: February 14 2017 $
.Dt POLL 2
.Os
.Sh NAME
@@ -295,7 +295,7 @@ if (nready == 0)
errx(1, "time out");
if ((pfd[0].revents & (POLLERR|POLLNVAL)))
errx(1, "bad fd %d", pfd[0].fd);
-if ((pfd[0].revents & (POLLIN|POLLHUP)))
+if ((pfd[0].revents & (POLLIN|POLLHUP))) {
if (read(STDIN_FILENO, buf, sizeof(buf)) == -1)
err(1, "read");
}