summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthieu <matthieu@openbsd.org>2004-12-31 18:34:32 +0000
committermatthieu <matthieu@openbsd.org>2004-12-31 18:34:32 +0000
commit2dcf643659e13d23a259f79820ee6cab11a27eb6 (patch)
treeb085961a44badd1d76bab26fbdc38aa0da0e678b
parentDocument existence of struct sockaddr_storage and add an example. (diff)
downloadwireguard-openbsd-2dcf643659e13d23a259f79820ee6cab11a27eb6.tar.xz
wireguard-openbsd-2dcf643659e13d23a259f79820ee6cab11a27eb6.zip
typos
-rw-r--r--lib/libc/sys/accept.26
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 1d3cb61d120..77323f155bd 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: accept.2,v 1.16 2004/12/31 18:31:15 matthieu Exp $
+.\" $OpenBSD: accept.2,v 1.17 2004/12/31 18:34:32 matthieu Exp $
.\" $NetBSD: accept.2,v 1.7 1996/01/31 20:14:42 mycroft Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -142,8 +142,8 @@ struct sockaddr_storage addr;
socklen_t len = sizeof(addr);
int retcode;
-retcode = accept(s, (struct sockaddr *)&addr, &len)
-if ( etcode < 0)
+retcode = accept(s, (struct sockaddr *)&addr, &len);
+if (retcode < 0)
errx(1, "accept");
.Ed
.Sh ERRORS