move g_test_dbg_lock_sleep from a global to a function level static

This avoids the need to define that variable in every program
which uses epee.
This commit is contained in:
moneromooo-monero 2016-02-22 19:34:09 +00:00
parent 3860feecb8
commit 5e3557d2c3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
18 changed files with 13 additions and 37 deletions

View file

@ -132,7 +132,7 @@ int main(int argc, char const * argv[])
return 0;
}
epee::g_test_dbg_lock_sleep = command_line::get_arg(vm, command_line::arg_test_dbg_lock_sleep);
epee::debug::g_test_dbg_lock_sleep() = command_line::get_arg(vm, command_line::arg_test_dbg_lock_sleep);
std::string db_type = command_line::get_arg(vm, command_line::arg_db_type);