Browse Source

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

Mark Haverkamp 20 years ago
parent
commit
5d90cabe58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      exec/totemconfig.c

+ 2 - 2
exec/totemconfig.c

@@ -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];