diff options
author | paul <paul> | 2005-11-04 12:31:39 +0000 |
---|---|---|
committer | paul <paul> | 2005-11-04 12:31:39 +0000 |
commit | c8c1521a7d39d165ef856c1a3a6dcd54f0532e8d (patch) | |
tree | ac069b1dd77be09ea5419169544cbf2107cf89d1 /ospfd/ospf_vty.c | |
parent | 8570676c4ffb407284d51a80c045d6989b7af6d7 (diff) |
2005-11-04 Paul Jakma <paul.jakma@sun.com>
* ospf_{dump,spf,vty}.c: Oops, use the internal tv_sub
function rather than unportable timersub.
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r-- | ospfd/ospf_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index c3cc4cb4..e28a89c5 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -2653,7 +2653,7 @@ DEFUN (show_ip_ospf, vty_out (vty, " SPF algorithm "); if (ospf->ts_spf.tv_sec || ospf->ts_spf.tv_usec) { - timersub (&recent_time, &ospf->ts_spf, &result); + result = tv_sub (recent_time, ospf->ts_spf); vty_out (vty, "last executed %s ago%s", ospf_timeval_dump (&result, timebuf, sizeof (timebuf)), VTY_NEWLINE); |