cfm: Define old_cfm_fault as 'enum cfm_fault_reason'.
authorAlex Wang <alexw@nicira.com>
Wed, 19 Mar 2014 23:19:28 +0000 (16:19 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 20 Mar 2014 17:55:48 +0000 (10:55 -0700)
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>
lib/cfm.c

index e8f86dc..636ca89 100644 (file)
--- a/lib/cfm.c
+++ b/lib/cfm.c
@@ -392,7 +392,7 @@ cfm_run(struct cfm *cfm) OVS_EXCLUDED(mutex)
     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;
+        enum cfm_fault_reason old_cfm_fault = cfm->fault;
         bool demand_override;
         bool rmp_set_opup = false;
         bool rmp_set_opdown = false;