Convert ospf6d over to quagga_gettime() wrappers.
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index a89ed7e..9832f57 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -378,7 +378,7 @@
else if (IS_OSPF6_DEBUG_ROUTE (TABLE))
zlog_debug ("%s: route add: %s", ospf6_route_table_name (table), buf);
- gettimeofday (&now, NULL);
+ quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
node = route_node_get (table->table, &route->prefix);
route->rnode = node;
@@ -792,7 +792,7 @@
char duration[16], ifname[IFNAMSIZ];
struct timeval now, res;
- gettimeofday (&now, (struct timezone *) NULL);
+ quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
timersub (&now, &route->changed, &res);
timerstring (&res, duration, sizeof (duration));
@@ -841,7 +841,7 @@
char duration[16];
int i;
- gettimeofday (&now, (struct timezone *) NULL);
+ quagga_gettime (QUAGGA_CLK_MONOTONIC, &now);
/* destination */
if (route->type == OSPF6_DEST_TYPE_LINKSTATE)