diff options
author | 2004-12-31 18:34:32 +0000 | |
---|---|---|
committer | 2004-12-31 18:34:32 +0000 | |
commit | 2dcf643659e13d23a259f79820ee6cab11a27eb6 (patch) | |
tree | b085961a44badd1d76bab26fbdc38aa0da0e678b /lib/libc | |
parent | Document existence of struct sockaddr_storage and add an example. (diff) | |
download | wireguard-openbsd-2dcf643659e13d23a259f79820ee6cab11a27eb6.tar.xz wireguard-openbsd-2dcf643659e13d23a259f79820ee6cab11a27eb6.zip |
typos
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/accept.2 | 6 |
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 |