The ctime/mtime fields in ospf_route and start_time field in ospf_master
are written but never read, thus entirely useless. Remove them.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
new = XCALLOC (MTYPE_OSPF_ROUTE, sizeof (struct ospf_route));
- new->ctime = quagga_time (NULL);
- new->mtime = new->ctime;
new->paths = list_new ();
new->paths->del = (void (*) (void *))ospf_path_free;
struct ospf_route
{
- /* Create time. */
- time_t ctime;
-
- /* Modified time. */
- time_t mtime;
-
/* Destination Type. */
u_char type;
om = &ospf_master;
om->ospf = list_new ();
om->master = thread_master_create ();
- om->start_time = quagga_time (NULL);
}
struct list *external[ZEBRA_ROUTE_MAX + 1];
#define EXTERNAL_INFO(E) (E->external_info)
- /* OSPF start time. */
- time_t start_time;
-
/* Various OSPF global configuration. */
u_char options;
#define OSPF_MASTER_SHUTDOWN (1 << 0) /* deferred-shutdown */