2015-09-06
2015-09-06 19:43:42 by Martin Nilsson <nilsson@fastmail.com>
-
51f1ceaed1f4260f0f768cd0016109c801892003
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 8.1
Cosmetic update of strerror use.
113:
if (bytes > 0) {
sent += bytes;
} else if (sent < 0) {
- exit(1, "Failed to write data: %s\n", strerror(ssl->errno()));
+ exit(1, "Failed to write data: %s.\n", strerror(ssl->errno()));
}
if (sent == sizeof(request)) {
ssl->set_write_callback(UNDEFINED);
158: Inside #if defined(HTTPS_CLIENT)
#ifdef HTTPS_CLIENT
Stdio.File con = Stdio.File();
if (!con->connect(HOST, PORT))
- exit(1, "Failed to connect to server: %s\n", strerror(con->errno()));
+ exit(1, "Failed to connect to server: %s.\n", strerror(con->errno()));
Client(con);
return -1;