From 64511f394a90602a31cbe1660be426c16439322c Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 31 Oct 2004 18:01:13 +0000 Subject: 2004-10-31 Paul Jakma * ospf_packet.c: (ospf_ls_upd_packet_new) Format for size_t should be ld. * ospf_zebra.c: (ospf_distribute_list_update_timer) Ugly misuse of THREAD_ARG to store an integer, but it should at least use same same type to retrieve the value. Assert value is sane. --- ospfd/ospf_zebra.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ospfd/ospf_zebra.c') diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 331c27c0..646c8ed7 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -929,10 +929,12 @@ ospf_distribute_list_update_timer (struct thread *thread) struct external_info *ei; struct route_table *rt; struct ospf_lsa *lsa; - u_char type; + int type; struct ospf *ospf; type = (int) THREAD_ARG (thread); + assert (type < ZEBRA_ROUTE_MAX); + rt = EXTERNAL_INFO (type); ospf = ospf_lookup (); -- cgit v1.2.1