Replaced numeric representation for bool with true/false keywords.
using namespace std;
Updater::Ptr updater;
-bool online_mode = 1;
+bool is_online = true;
/**
* Checks if a bpdyndnsd process is already running.
void switch_to_offline(int param)
{
updater->get_logger()->print_caught_siguser1();
- // TODO: How about using an enum for online_mode instead of magic numbers?
- online_mode = 0;
+ is_online = false;
}
{
updater->get_logger()->print_caught_sighup();
updater->reload_config();
- online_mode = 1;
+ is_online = true;
}
// service processing starts here
do
{
- if ( online_mode == 1 )
+ if ( is_online == true )
{
// update all configured services
updater->update_services();