Browse Source

minor cleanup: removed unnecessary static for namescope level variables,
and removed an unused variable "PROGRAM"

JINMEI Tatuya 14 years ago
parent
commit
692e3a1c22
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/bin/auth/main.cc

+ 4 - 5
src/bin/auth/main.cc

@@ -57,11 +57,10 @@ using namespace asiolink;
 
 namespace {
 
-static bool verbose_mode = false;
+bool verbose_mode = false;
 
 // Default port current 5300 for testing purposes
-static const string PROGRAM = "Auth";
-static const char* DNSPORT = "5300";
+const char* DNSPORT = "5300";
 
 // Note: this value must be greater than 0.
 // TODO: make it configurable via command channel.
@@ -70,9 +69,9 @@ const uint32_t STATISTICS_SEND_INTERVAL_SEC = 60;
 /* need global var for config/command handlers.
  * todo: turn this around, and put handlers in the authserver
  * class itself? */
-static AuthSrv *auth_server;
+AuthSrv *auth_server;
 
-static IOService io_service;
+IOService io_service;
 
 ConstElementPtr
 my_config_handler(ConstElementPtr new_config) {