From 9fd34303eead9dc23d5ae5279fd5cee4a69a15c8 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Fri, 23 Mar 2012 17:52:39 +0400 Subject: [PATCH] Set failures threshold variables type as long, due to unpredictable behaviour of libconfuse on x86_64 This commit partly reverts commit 1610c1394f3c35758b8e4cff7fb99b83316cca9d --- daemon/yasnd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)