summaryrefslogtreecommitdiff
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorpaul <paul>2004-10-31 18:01:13 +0000
committerpaul <paul>2004-10-31 18:01:13 +0000
commit64511f394a90602a31cbe1660be426c16439322c (patch)
tree197fd4d90a7c6a4b627a67a078e8ff6d1f2372cb /ospfd/ospf_zebra.c
parent039b95776979c74f7d02719800f9d742338e815b (diff)
2004-10-31 Paul Jakma <paul@dishone.st>
* 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.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c4
1 files changed, 3 insertions, 1 deletions
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 ();