add newline after die() message again - gopherproxy-c - Gopher HTTP proxy in C … | |
git clone git://git.codemadness.org/gopherproxy-c | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 407a5ede41c92b0b9b711bd376493a579995da36 | |
parent b52a2076670c215f88202f0062cbe101b4954055 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 3 Aug 2025 22:08:02 +0200 | |
add newline after die() message again | |
Diffstat: | |
M gopherproxy.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/gopherproxy.c b/gopherproxy.c | |
@@ -195,7 +195,7 @@ edial(const char *host, const char *port) | |
hints.ai_socktype = SOCK_STREAM; | |
hints.ai_flags = AI_NUMERICSERV; /* numeric port only */ | |
if ((error = getaddrinfo(host, port, &hints, &res0))) | |
- die(500, "%s: %s: %s:%s", __func__, gai_strerror(error), host,… | |
+ die(500, "%s: %s: %s:%s\n", __func__, gai_strerror(error), hos… | |
s = -1; | |
for (res = res0; res; res = res->ai_next) { | |
s = socket(res->ai_family, res->ai_socktype, | |
@@ -216,7 +216,7 @@ edial(const char *host, const char *port) | |
break; | |
} | |
if (s == -1) | |
- die(500, "%s: %s: %s:%s", __func__, cause, host, port); | |
+ die(500, "%s: %s: %s:%s\n", __func__, cause, host, port); | |
freeaddrinfo(res0); | |
return s; | |
@@ -257,7 +257,7 @@ setup_tls(void) | |
sock = edial(u.host, u.port); | |
if (tls_connect_socket(t, sock, u.host) == -1) | |
- die(500, "tls_connect: %s", tls_error(t)); | |
+ die(500, "tls_connect: %s\n", tls_error(t)); | |
} | |
ssize_t |