From c8c1521a7d39d165ef856c1a3a6dcd54f0532e8d Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 4 Nov 2005 12:31:39 +0000 Subject: 2005-11-04 Paul Jakma * ospf_{dump,spf,vty}.c: Oops, use the internal tv_sub function rather than unportable timersub. --- ospfd/ospf_spf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospfd/ospf_spf.c') diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index f6260fbd..564ae847 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -1171,7 +1171,7 @@ ospf_spf_calculate_schedule (struct ospf *ospf) } /* XXX Monotic timers: we only care about relative time here. */ - timersub (&recent_time, &ospf->ts_spf, &result); + result = tv_sub (recent_time, ospf->ts_spf); elapsed = (result.tv_sec * 1000) + (result.tv_usec / 1000); ht = ospf->spf_holdtime * ospf->spf_hold_multiplier; -- cgit v1.2.1