Fix compiler warnings when HZ is defined to be a long.

Bugzilla #904


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@830 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Mark Haverkamp 2005-09-29 14:38:18 +00:00
parent 52fc4efc54
commit 5d90cabe58

View File

@ -56,14 +56,14 @@
#define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST 4
#define TOKEN_TIMEOUT 1000
#define TOKEN_RETRANSMIT_TIMEOUT (int)(TOKEN_TIMEOUT / (TOKEN_RETRANSMITS_BEFORE_LOSS_CONST + 0.2))
#define TOKEN_HOLD_TIMEOUT (int)(TOKEN_RETRANSMIT_TIMEOUT * 0.8 - (1000/HZ))
#define TOKEN_HOLD_TIMEOUT (int)(TOKEN_RETRANSMIT_TIMEOUT * 0.8 - (1000/(int)HZ))
#define JOIN_TIMEOUT 100
#define CONSENSUS_TIMEOUT 200
#define MERGE_TIMEOUT 200
#define DOWNCHECK_TIMEOUT 1000
#define FAIL_TO_RECV_CONST 10
#define SEQNO_UNCHANGED_CONST 30
#define MINIMUM_TIMEOUT (1000/HZ)*3
#define MINIMUM_TIMEOUT (int)(1000/HZ)*3
static char error_string_response[512];