aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGiel van Schijndel <me@mortis.eu>2011-08-11 13:41:01 +0200
committerGiel van Schijndel <me@mortis.eu>2011-08-19 07:24:37 +0200
commit99860de3c9b5809110538e1ab2d4e216d77b5aaf (patch)
tree35579db7032a75646495548859b50495ba656ca6 /src/net.h
parent865ed8a1e5c587468a40756d46bcbc1c5a12bb06 (diff)
downloadbitcoin-99860de3c9b5809110538e1ab2d4e216d77b5aaf.tar.xz
Make some global variables less-global (static)
Explicitly make these global variables less-global to reduce the maximum scope of this global state. In my experience global variables tend to be a major source of bugs. As such the less accessible they are the less likely they are to be the source of a bug. Signed-off-by: Giel van Schijndel <me@mortis.eu>
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 3b098e1a82..52568ef4ce 100644
--- a/src/net.h
+++ b/src/net.h
@@ -476,10 +476,8 @@ extern bool fClient;
extern bool fAllowDNS;
extern uint64 nLocalServices;
extern CAddress addrLocalHost;
-extern CNode* pnodeLocalHost;
extern uint64 nLocalHostNonce;
extern boost::array<int, 10> vnThreadsRunning;
-extern SOCKET hListenSocket;
extern std::vector<CNode*> vNodes;
extern CCriticalSection cs_vNodes;