From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 11:40:49 +0000 (+0200)
Subject: close_unusable_connections(): Fix format specifier in a log message
X-Git-Tag: v_3_0_29~140
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/static/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=e4bb29e3bfe12d779f7d3b2a95ece907d0725ede;p=privoxy.git

close_unusable_connections(): Fix format specifier in a log message
---

diff --git a/gateway.c b/gateway.c
index 9b21aa53..a805a8fb 100644
--- a/gateway.c
+++ b/gateway.c
@@ -425,7 +425,7 @@ int close_unusable_connections(void)
          {
             log_error(LOG_LEVEL_CONNECT,
                "The connection to %s:%d in slot %d timed out. "
-               "Closing socket %d. Timeout is: %d. Assumed latency: %d.",
+               "Closing socket %d. Timeout is: %d. Assumed latency: %ld.",
                reusable_connection[slot].host,
                reusable_connection[slot].port, slot,
                reusable_connection[slot].sfd,