summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2014-03-19 16:19:28 -0700
committerAlex Wang <alexw@nicira.com>2014-03-20 11:15:09 -0700
commit065a3c5a1ce3d73cec57a2bc395ef39429e97a05 (patch)
treee752135add8c28f931926bd194b398290667d2d1
parent8599fc9457f76138f4016e13c502e9a393466861 (diff)
downloadopenvswitch-branch-1.6.tar.gz
cfm: Define old_cfm_fault as 'enum cfm_fault_reason'.branch-1.6
CFM fault variable type has been changed to 'enum cfm_fault_reason' for long time. However, inside cfm_run(), the old_cfm_fault is still defined as boolean. This commit fixes the issue. Found by inspection. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--lib/cfm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cfm.c b/lib/cfm.c
index 3100c8b57..f04cdfca1 100644
--- a/lib/cfm.c
+++ b/lib/cfm.c
@@ -319,7 +319,7 @@ cfm_run(struct cfm *cfm)
if (timer_expired(&cfm->fault_timer)) {
long long int interval = cfm_fault_interval(cfm);
struct remote_mp *rmp, *rmp_next;
- bool old_cfm_fault = cfm->fault;
+ int old_cfm_fault = cfm->fault;
cfm->fault = cfm->recv_fault;
cfm->recv_fault = 0;