diff --git a/daemon/yasnd.c b/daemon/yasnd.c index 8237a03..a65f6f4 100644 --- a/daemon/yasnd.c +++ b/daemon/yasnd.c @@ -16,9 +16,9 @@ int hosts_count=0; // count of hosts bool sms_enable=false; // use SMS messages for control and reports? char* recipient_number=NULL; // recipient of sms alerts bool loop_locked=false; // flag for locking main loop while config re-reading -int failures_first=0; // count of failures while hosts checking, that triggers SMS sending -int failures_second=0; // count of failures while hosts checking, that triggers host's reset -int failures_third=0; // count of failures while hosts checking, that clean failure statistics +long failures_first=0; // count of failures while hosts checking, that triggers SMS sending +long failures_second=0; // count of failures while hosts checking, that triggers host's reset +long failures_third=0; // count of failures while hosts checking, that clean failure statistics pid_t mainloop_clone_pid; // pid of clone process, that containt main loop void* allocate_memory(int bytes)