summaryrefslogtreecommitdiffstats
path: root/lib/libtls
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2019-03-20 14:17:19 +0000
committerespie <espie@openbsd.org>2019-03-20 14:17:19 +0000
commit5030b68b5dc9572c8575b9b6c2bee71b90256b70 (patch)
treedd05ff13ae6ec5c4fa0d0b66d732c05e6f883baf /lib/libtls
parentregen (diff)
downloadwireguard-openbsd-5030b68b5dc9572c8575b9b6c2bee71b90256b70.tar.xz
wireguard-openbsd-5030b68b5dc9572c8575b9b6c2bee71b90256b70.zip
fix examples (libtls uses its own error reporting mechanism)
okay tb@
Diffstat (limited to 'lib/libtls')
-rw-r--r--lib/libtls/man/tls_read.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libtls/man/tls_read.3 b/lib/libtls/man/tls_read.3
index a7faebaea78..e890357a9fd 100644
--- a/lib/libtls/man/tls_read.3
+++ b/lib/libtls/man/tls_read.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tls_read.3,v 1.4 2017/02/20 13:09:15 schwarze Exp $
+.\" $OpenBSD: tls_read.3,v 1.5 2019/03/20 14:17:19 espie Exp $
.\"
.\" Copyright (c) 2014, 2015 Ted Unangst <tedu@openbsd.org>
.\" Copyright (c) 2015 Doug Hogan <doug@openbsd.org>
@@ -18,7 +18,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 20 2017 $
+.Dd $Mdocdate: March 20 2019 $
.Dt TLS_READ 3
.Os
.Sh NAME
@@ -164,7 +164,7 @@ while (len > 0) {
if (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT)
continue;
if (ret < 0)
- err(1, "tls_write: %s", tls_error(ctx));
+ errx(1, "tls_write: %s", tls_error(ctx));
buf += ret;
len -= ret;
}
@@ -193,7 +193,7 @@ while (len > 0) {
else if (ret == TLS_WANT_POLLOUT)
pfd[0].events = POLLOUT;
else if (ret < 0)
- err(1, "tls_write: %s", tls_error(ctx));
+ errx(1, "tls_write: %s", tls_error(ctx));
else {
buf += ret;
len -= ret;