]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make the strings from #1667 static.
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Jul 2017 19:59:17 +0000 (15:59 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Jul 2017 19:59:17 +0000 (15:59 -0400)
src/or/buffers.c
src/or/control.c

index 2002f4f9812c9090c22a79567e174459058300ef..d5ecfb84881871df77b89bee9b10047c57f7727e 100644 (file)
@@ -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"
index dc431d6d51969557bd46d47366c4446bd03e65fe..724d4b35c001981abf73852477918075fbe28276 100644 (file)
@@ -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"