[tor-commits] [tor/master] Make the strings from #1667 static.

nickm at torproject.org nickm at torproject.org
Wed Jul 5 19:59:30 UTC 2017


commit a85ee62e74905af0c685d378be9dfc8ae1935af5
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jul 5 15:59:17 2017 -0400

    Make the strings from #1667 static.
---
 src/or/buffers.c | 2 +-
 src/or/control.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/buffers.c b/src/or/buffers.c
index 2002f4f..d5ecfb8 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -1478,7 +1478,7 @@ socks_request_set_socks5_error(socks_request_t *req,
    req->reply[3] = 0x01;   // ATYP field.
 }
 
-const char SOCKS_PROXY_IS_NOT_AN_HTTP_PROXY_MSG[] =
+static const char SOCKS_PROXY_IS_NOT_AN_HTTP_PROXY_MSG[] =
   "HTTP/1.0 501 Tor is not an HTTP Proxy\r\n"
   "Content-Type: text/html; charset=iso-8859-1\r\n\r\n"
   "<html>\n"
diff --git a/src/or/control.c b/src/or/control.c
index dc431d6..724d4b3 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4918,7 +4918,7 @@ peek_connection_has_http_command(connection_t *conn)
   return peek_buf_has_http_command(conn->inbuf);
 }
 
-const char CONTROLPORT_IS_NOT_AN_HTTP_PROXY_MSG[] =
+static const char CONTROLPORT_IS_NOT_AN_HTTP_PROXY_MSG[] =
   "HTTP/1.0 501 Tor ControlPort is not an HTTP proxy"
   "\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n"
   "<html>\n"



More information about the tor-commits mailing list