about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c4
-rw-r--r--server.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/client.c b/client.c
index 7aa2584..b5fb36a 100644
--- a/client.c
+++ b/client.c
@@ -67,7 +67,7 @@ void clientSend(struct Client *client, const char *ptr, size_t len) {
 		ssize_t ret = tls_write(client->tls, ptr, len);
 		if (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT) continue;
 		if (ret < 0) {
-			warnx("tls_write: %s", tls_error(client->tls));
+			warnx("client tls_write: %s", tls_error(client->tls));
 			client->error = true;
 			return;
 		}
@@ -226,7 +226,7 @@ void clientRecv(struct Client *client) {
 	);
 	if (read == TLS_WANT_POLLIN || read == TLS_WANT_POLLOUT) return;
 	if (read <= 0) {
-		if (read < 0) warnx("tls_read: %s", tls_error(client->tls));
+		if (read < 0) warnx("client tls_read: %s", tls_error(client->tls));
 		client->error = true;
 		return;
 	}
diff --git a/server.c b/server.c
index 964b15b..a304db0 100644
--- a/server.c
+++ b/server.c
@@ -90,7 +90,7 @@ void serverSend(const char *ptr, size_t len) {
 	while (len) {
 		ssize_t ret = tls_write(client, ptr, len);
 		if (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT) continue;
-		if (ret < 0) errx(EX_IOERR, "tls_write: %s", tls_error(client));
+		if (ret < 0) errx(EX_IOERR, "server tls_write: %s", tls_error(client));
 		ptr += ret;
 		len -= ret;
 	}
@@ -170,7 +170,7 @@ void serverRecv(void) {
 
 	ssize_t read = tls_read(client, &buf[len], sizeof(buf) - len);
 	if (read == TLS_WANT_POLLIN || read == TLS_WANT_POLLOUT) return;
-	if (read < 0) errx(EX_IOERR, "tls_read: %s", tls_error(client));
+	if (read < 0) errx(EX_IOERR, "server tls_read: %s", tls_error(client));
 	len += read;
 
 	char *crlf;
.in?id=a6784dd5561ff6d599f9a5296382b362addec30f&follow=1'>Remove scheme text linkJune McEnroe 2019-07-26Update Dark.terminalJune McEnroe 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe 2019-07-24Remove histedit from bitJune McEnroe