Skip to content

Commit c4b60b3

Browse files
committed
Make some global variables less-global (static)
1 parent bb2aaee commit c4b60b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/torcontrol.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ void TorController::reconnect_cb(evutil_socket_t fd, short what, void *arg)
662662
}
663663

664664
/****** Thread ********/
665-
struct event_base *gBase;
666-
boost::thread torControlThread;
665+
static struct event_base *gBase;
666+
static boost::thread torControlThread;
667667

668668
static void TorControlThread()
669669
{

0 commit comments

Comments
 (0)