From d1772e98823944be4559213d54890a81a03ad4ef Mon Sep 17 00:00:00 2001 From: espie <> Date: Wed, 20 Mar 2019 14:17:19 +0000 Subject: fix examples (libtls uses its own error reporting mechanism) okay tb@ --- src/lib/libtls/man/tls_read.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/libtls/man/tls_read.3 b/src/lib/libtls/man/tls_read.3 index a7faebaea7..e890357a9f 100644 --- a/src/lib/libtls/man/tls_read.3 +++ b/src/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 .\" Copyright (c) 2015 Doug Hogan @@ -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; -- cgit v1.2.3-55-g6feb