Make some global variables less-global (static)
authorGiel van Schijndel <me@mortis.eu>
Thu, 11 Aug 2011 11:41:01 +0000 (13:41 +0200)
committerGiel van Schijndel <me@mortis.eu>
Fri, 19 Aug 2011 05:24:37 +0000 (07:24 +0200)
commit99860de3c9b5809110538e1ab2d4e216d77b5aaf
tree35579db7032a75646495548859b50495ba656ca6
parent865ed8a1e5c587468a40756d46bcbc1c5a12bb06
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>
src/main.cpp
src/main.h
src/net.cpp
src/net.h