summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-03-20 14:17:20 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-03-20 14:17:20 +0000
commitbe1fa2aa9b199c1e2c2d7b3a04c1867f1ffeea4f (patch)
treeb8ee2beda01403e1099968a2c22c3f5c32613d2d /lib
parentbce4563664bf22632a8517d322bdc195f1f9097a (diff)
fix examples (libtls uses its own error reporting mechanism)
okay tb@
Diffstat (limited to 'lib')
-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;