Replace 1000 value with MSEC_PER_SEC macro when converting seconds to ms. Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodire...@intel.com> --- lib/mac-learning.c | 2 +- lib/mcast-snooping.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/mac-learning.c b/lib/mac-learning.c index 215caf0..166c80a 100644 --- a/lib/mac-learning.c +++ b/lib/mac-learning.c @@ -534,6 +534,6 @@ mac_learning_wait(struct mac_learning *ml) poll_immediate_wake(); } else if (!ovs_list_is_empty(&ml->lrus)) { struct mac_entry *e = mac_entry_from_lru_node(ml->lrus.next); - poll_timer_wait_until(e->expires * 1000LL); + poll_timer_wait_until(e->expires * MSEC_PER_SEC); } } diff --git a/lib/mcast-snooping.c b/lib/mcast-snooping.c index 6730301..c5bcb6c 100644 --- a/lib/mcast-snooping.c +++ b/lib/mcast-snooping.c @@ -916,12 +916,12 @@ mcast_snooping_wait__(struct mcast_snooping *ms) if (!ovs_list_is_empty(&ms->group_lru)) { grp = mcast_group_from_lru_node(ms->group_lru.next); bundle = mcast_group_bundle_from_lru_node(grp->bundle_lru.next); - msec = bundle->expires * 1000LL; + msec = bundle->expires * MSEC_PER_SEC; } if (!ovs_list_is_empty(&ms->mrouter_lru)) { mrouter = mcast_mrouter_from_lru_node(ms->mrouter_lru.next); - mrouter_msec = mrouter->expires * 1000LL; + mrouter_msec = mrouter->expires * MSEC_PER_SEC; msec = msec ? MIN(msec, mrouter_msec) : mrouter_msec; } -- 2.4.11 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev