From fb434159d18e8077ae2d31e1a54c2f8248a6366a Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 24 May 2019 15:18:42 +0200 Subject: Remove global symbols: Avoid using the global namespace if possible Rename CCriticalSection to RecursiveMutex (both are AnnotatedMixin) ``` $ git grep -E '(typedef|using).*(CCriticalSection|RecursiveMutex)' src/sync.h:using RecursiveMutex = AnnotatedMixin; src/sync.h:typedef AnnotatedMixin CCriticalSection; ``` --- src/httpserver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/httpserver.cpp') diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 63639fa3e0..d17667223b 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -139,15 +139,15 @@ struct HTTPPathHandler //! libevent event loop static struct event_base* eventBase = nullptr; //! HTTP server -struct evhttp* eventHTTP = nullptr; +static struct evhttp* eventHTTP = nullptr; //! List of subnets to allow RPC connections from static std::vector rpc_allow_subnets; //! Work queue for handling longer requests off the event loop thread static WorkQueue* workQueue = nullptr; //! Handlers for (sub)paths -std::vector pathHandlers; +static std::vector pathHandlers; //! Bound listening sockets -std::vector boundSockets; +static std::vector boundSockets; /** Check if a network address is allowed to access the HTTP server */ static bool ClientAllowed(const CNetAddr& netaddr) @@ -420,7 +420,7 @@ bool UpdateHTTPServerLogging(bool enable) { #endif } -std::thread threadHTTP; +static std::thread threadHTTP; static std::vector g_thread_http_workers; void StartHTTPServer() -- cgit v1.2.3